mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
kate: if seeking with GST_SEEK_TYPE_CUR, flush everything
We don't know how to calculate the target, so be safe. https://bugzilla.gnome.org/show_bug.cgi?id=600929
This commit is contained in:
parent
5dac64b20a
commit
74d82c4c1e
1 changed files with 3 additions and 1 deletions
|
@ -784,7 +784,9 @@ gst_kate_tiger_seek (GstKateTiger * tiger, GstPad * pad, GstEvent * event)
|
|||
target = cur / (float) GST_SECOND;
|
||||
break;
|
||||
case GST_SEEK_TYPE_CUR:
|
||||
target = gst_kate_tiger_get_time (tiger) + cur / (float) GST_SECOND;
|
||||
GST_WARNING_OBJECT (tiger,
|
||||
"Seeking from the current segment, cannot work out target so flushing everything");
|
||||
target = (kate_float) 0;
|
||||
break;
|
||||
case GST_SEEK_TYPE_END:
|
||||
GST_WARNING_OBJECT (tiger,
|
||||
|
|
Loading…
Reference in a new issue