Commit 0f5f02a3 authored by Simon Morlat's avatar Simon Morlat

don't crash if mkv player is not there

parent a6730819
......@@ -62,6 +62,11 @@ RingStream * ring_start_with_cb(const char *file,int interval,MSSndCard *sndcard
stream=(RingStream *)ms_new0(RingStream,1);
if (file) {
stream->source=_ms_create_av_player(file);
if (stream->source == NULL){
ms_error("ring_start_with_cb(): could not create player for playing '%s'", file);
file = NULL;
stream->source=ms_filter_new(MS_FILE_PLAYER_ID);
}
} else {
/*create dummy source*/
stream->source=ms_filter_new(MS_FILE_PLAYER_ID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment