gst/gstpad.c: Disable attempt at mode switching until it is figured out.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 25 May 2005 13:59:18 +0000 (13:59 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 25 May 2005 13:59:18 +0000 (13:59 +0000)
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.

ChangeLog
gst/gstpad.c

index 34b566c..e671129 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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):
        * gst/base/gstbasesink.c: (gst_basesink_preroll_queue_push),
        (gst_basesink_finish_preroll), (gst_basesink_chain),
index b8d4cbb..f553f5b 100644 (file)
@@ -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) {