mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
gst/gstpad.c: Disable attempt at mode switching until it is figured out.
Original commit message from CVS: * gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare), (gst_pad_link), (gst_pad_accept_caps), (gst_pad_query), (gst_pad_send_event), (gst_pad_start_task): Disable attempt at mode switching until it is figured out.
This commit is contained in:
parent
add280cd10
commit
25576cb626
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-05-25 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_prepare),
|
||||
(gst_pad_link), (gst_pad_accept_caps), (gst_pad_query),
|
||||
(gst_pad_send_event), (gst_pad_start_task):
|
||||
Disable attempt at mode switching until it is figured out.
|
||||
|
||||
2005-05-25 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/base/gstadapter.c: (gst_adapter_peek), (gst_adapter_flush):
|
||||
|
|
|
@ -442,7 +442,7 @@ gst_pad_set_active (GstPad * pad, GstActivateMode mode)
|
|||
GstRealPad *realpad;
|
||||
GstActivateMode old;
|
||||
GstPadActivateFunction activatefunc;
|
||||
gboolean active;
|
||||
gboolean active, oldactive;
|
||||
|
||||
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
|
||||
|
||||
|
@ -450,10 +450,17 @@ gst_pad_set_active (GstPad * pad, GstActivateMode mode)
|
|||
|
||||
active = GST_PAD_MODE_ACTIVATE (mode);
|
||||
old = GST_RPAD_ACTIVATE_MODE (realpad);
|
||||
oldactive = GST_PAD_MODE_ACTIVATE (old);
|
||||
|
||||
/* if nothing changed, we can just exit */
|
||||
if (G_UNLIKELY (oldactive == active))
|
||||
goto was_ok;
|
||||
|
||||
/* FIXME, no mode switching yet, need more design docs first */
|
||||
#if 0
|
||||
if (G_UNLIKELY (old == mode))
|
||||
goto was_ok;
|
||||
#endif
|
||||
|
||||
/* make sure data is disallowed when going inactive */
|
||||
if (!active) {
|
||||
|
|
Loading…
Reference in a new issue