gst/base/gstbasesrc.c: (gst_base_src_event_handler)

Original commit message from CVS:
* gst/base/gstbasesrc.c: (gst_base_src_event_handler)
Don't pretend to handle seek events if the source is not seekable
This commit is contained in:
Jan Schmidt 2005-08-22 19:22:34 +00:00
parent 05fa076d05
commit ee1f83092e
3 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-08-22 Jan Schmidt <thaytan@mad.scientist.com>
* gst/base/gstbasesrc.c: (gst_base_src_event_handler)
Don't pretend to handle seek events if the source is not seekable
2005-08-22 Jan Schmidt <thaytan@mad.scientist.com>
* gst/base/gstbasesink.c: (gst_base_sink_handle_object):

View file

@ -509,6 +509,10 @@ gst_base_src_event_handler (GstPad * pad, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
if (!src->seekable) {
gst_event_unref (event);
return FALSE;
}
return gst_base_src_do_seek (src, event);
case GST_EVENT_FLUSH_START:
/* cancel any blocking getrange */

View file

@ -509,6 +509,10 @@ gst_base_src_event_handler (GstPad * pad, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
if (!src->seekable) {
gst_event_unref (event);
return FALSE;
}
return gst_base_src_do_seek (src, event);
case GST_EVENT_FLUSH_START:
/* cancel any blocking getrange */