Revert "element: only clear negotiable when going to NULL"
authorEdward Hervey <bilboed@bilboed.com>
Tue, 15 Jun 2010 09:47:57 +0000 (11:47 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 15 Jun 2010 09:54:19 +0000 (11:54 +0200)
This reverts commit 8f5ec1f737c3b37538b2307aef160d9d21f1c422.

bleeeeh

gst/gstelement.c

index 143b9c275678ad34279700e71d34c34ebc9ba6d6..e4e149b396cb07baf2b7ef173de7bed6b0377fce 100644 (file)
@@ -2834,15 +2834,13 @@ gst_element_change_state_func (GstElement * element, GstStateChange transition)
       } else {
         gst_element_set_base_time (element, 0);
       }
+      gst_element_pads_negotiable (element, FALSE);
+
       /* In null state release the reference to the clock */
       GST_OBJECT_LOCK (element);
       clock_p = &element->clock;
       gst_object_replace ((GstObject **) clock_p, NULL);
       GST_OBJECT_UNLOCK (element);
-
-      /* only clear negotiable when going to NULL */
-      if (transition == GST_STATE_CHANGE_READY_TO_NULL)
-        gst_element_pads_negotiable (element, FALSE);
       break;
     default:
       /* this will catch real but unhandled state changes;