Commit 388a6e80 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix crash in MKV seeking if the video track has been disabled because of an unsupported codec.

parent a8c4fb9f
......@@ -2324,7 +2324,10 @@ static void player_process(MSFilter *f) {
for(i=0; i<2; i++) {
if(obj->players[i]) mkv_track_player_reset(obj->players[i]);
}
ms_queue_put(f->outputs[0], allocb(0, 0));
if(f->outputs[0]) {
// Send an empty buffer to notify the video decoder that it should reset itself
ms_queue_put(f->outputs[0], allocb(0, 0));
}
obj->position_changed = FALSE;
}
......
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