Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
af6d6513
Commit
af6d6513
authored
Jan 25, 2016
by
François Grisez
Browse files
Fix MS_PLAYER_SET_LOOP in MKVPlayer filter
parent
7b1b79e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/videofilters/mkv.c
View file @
af6d6513
...
...
@@ -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
]);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment