mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
05fa076d05
commit
ee1f83092e
3 changed files with 13 additions and 0 deletions
|
@ -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):
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue