mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
gst/switch/gstswitch.c (gst_selector_pad_chain): Return OK when a buffer is ignored, not NOT_LINKED. No sense in maki...
Original commit message from CVS: 2007-12-17 Andy Wingo <wingo@pobox.com> * gst/switch/gstswitch.c (gst_selector_pad_chain): Return OK when a buffer is ignored, not NOT_LINKED. No sense in making a source element error out; at least fdsrc considers NOT_LINKED to be a fatal error. Patch 11/12. There is no patch 12/12. Foo.
This commit is contained in:
parent
f3f11f4822
commit
d9cf6cc948
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
||||||
2007-12-17 Andy Wingo <wingo@pobox.com>
|
2007-12-17 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
|
* gst/switch/gstswitch.c (gst_selector_pad_chain): Return OK when
|
||||||
|
a buffer is ignored, not NOT_LINKED. No sense in making a source
|
||||||
|
element error out; at least fdsrc considers NOT_LINKED to be a
|
||||||
|
fatal error. Patch 11/12. There is no patch 12/12. Foo.
|
||||||
|
|
||||||
* gst/switch/gstswitch-marshal.list:
|
* gst/switch/gstswitch-marshal.list:
|
||||||
* gst/switch/gstswitch.h (struct _GstStreamSelectorClass):
|
* gst/switch/gstswitch.h (struct _GstStreamSelectorClass):
|
||||||
* gst/switch/gstswitch.c (gst_stream_selector_class_init)
|
* gst/switch/gstswitch.c (gst_stream_selector_class_init)
|
||||||
|
|
|
@ -425,7 +425,7 @@ ignore:
|
||||||
GST_DEBUG_OBJECT (sel, "Ignoring buffer %p from pad %s:%s",
|
GST_DEBUG_OBJECT (sel, "Ignoring buffer %p from pad %s:%s",
|
||||||
buf, GST_DEBUG_PAD_NAME (pad));
|
buf, GST_DEBUG_PAD_NAME (pad));
|
||||||
gst_buffer_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
res = GST_FLOW_NOT_LINKED;
|
res = GST_FLOW_OK;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue