Commit af6d6513 authored by François Grisez's avatar François Grisez

Fix MS_PLAYER_SET_LOOP in MKVPlayer filter

parent 7b1b79e2
......@@ -2413,9 +2413,10 @@ static ms_bool_t mkv_player_seek_ms(MKVPlayer *obj, int position) {
ms_error("MKVPlayer: cannot seek. No file open");
return FALSE;
}
obj->time = mkv_reader_seek(obj->reader, position);
obj->time = position>0 ? mkv_reader_seek(obj->reader, position) : 0;
for(i = 0; i < 2; i++) {
if(obj->players[i]) {
if(position == 0) mkv_track_reader_reset(obj->players[i]->track_reader);
mkv_track_player_reset(obj->players[i]);
}
}
......
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