mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
Fix forward seeks stop position (it should be the EOF, not the previous stop position).
This commit is contained in:
parent
37de9e77c6
commit
d72831ea72
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ static void send_seek_event (CustomData *data) {
|
|||
/* Create the seek event */
|
||||
if (data->rate > 0) {
|
||||
seek_event = gst_event_new_seek (data->rate, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE,
|
||||
GST_SEEK_TYPE_SET, position, GST_SEEK_TYPE_NONE, 0);
|
||||
GST_SEEK_TYPE_SET, position, GST_SEEK_TYPE_SET, -1);
|
||||
} else {
|
||||
seek_event = gst_event_new_seek (data->rate, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE,
|
||||
GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_SET, position);
|
||||
|
|
Loading…
Reference in a new issue