diff options
author | Josep Torra <n770galaxy@gmail.com> | 2009-06-16 18:32:12 +0200 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2009-06-16 18:36:41 +0200 |
commit | d280a3977e5e6b0612743fc1edd0e038ffbdc9bb (patch) | |
tree | 031fe639244f7e83c9b9a17f042e31cd76acd965 | |
parent | 6103d45dc0cbc7838d93dea688f5ce174aed09b1 (diff) |
gstbin: swap the lines of my previous commit
Fixes a bug introduced in my previous commit that released the
clock provider and after used it to create the clock lost message.
-rw-r--r-- | gst/gstbin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstbin.c b/gst/gstbin.c index 52ef614da7..b62905429d 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -1211,12 +1211,12 @@ gst_bin_remove_func (GstBin * bin, GstElement * element) if (bin->clock_provider == element) { GST_DEBUG_OBJECT (bin, "element \"%s\" provided the clock", elem_name); bin->clock_dirty = TRUE; + clock_message = + gst_message_new_clock_lost (GST_OBJECT_CAST (bin), bin->provided_clock); provided_clock_p = &bin->provided_clock; clock_provider_p = &bin->clock_provider; gst_object_replace ((GstObject **) provided_clock_p, NULL); gst_object_replace ((GstObject **) clock_provider_p, NULL); - clock_message = - gst_message_new_clock_lost (GST_OBJECT_CAST (bin), bin->provided_clock); } /* remove messages for the element, if there was a pending ASYNC_START |