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:
Vincent Penquerc'h 2010-12-25 17:01:11 +00:00 committed by Tim-Philipp Müller
parent 5dac64b20a
commit 74d82c4c1e

View file

@ -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,