mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
Revert "element: only clear negotiable when going to NULL"
This reverts commit 8f5ec1f737
.
bleeeeh
This commit is contained in:
parent
29cc802269
commit
27a58ed70d
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue