Commit 0190b1c3 authored by François Grisez's avatar François Grisez

Fix a bug concerning the MS_PLAYER_GET_CURRENT_POSITION method of the MKVPlayer filter

parent 73ac0e72
......@@ -2463,7 +2463,7 @@ static int player_get_current_position(MSFilter *f, void *arg) {
ms_error("MKVPlayer: cannot get current duration. No file is open");
goto fail;
}
*(int *)arg = (int)(((uint64_t)matroska_block_get_timestamp(&obj->file)) * (uint64_t)matroska_get_timecode_scale(&obj->file)) / 1000000UL;
*(int *)arg = matroska_block_get_timestamp(&obj->file);
ms_filter_unlock(f);
return 0;
......
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