Files
whisper.cpp/examples
Daniel Bevenius 1ad258ca31 stream : add nullptr check of whisper_context (#3283)
* stream : add nullptr check of whisper_context

This commit adds a check to ensure that the `whisper_context` is not
null after initialization.

The motivation for this is that currently, if the initialization fails,
the program continues to run leading to a segmentation fault. This sort
of check is performed by others examples like whisper-cli.

Refs: https://github.com/ggml-org/whisper.cpp/issues/3280#issuecomment-3003778035

* examples : add nullptr check for whisper_context
2025-06-25 14:16:31 +02:00
..
2024-11-18 14:57:23 +02:00
2025-06-21 07:34:17 +03:00
2024-12-18 12:52:16 +02:00
2023-11-20 13:16:38 +02:00