X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Felements%2Fgsttypefindelement.c;h=7db416bf748e4d9992aacca1bf0515a44d0ee4ef;hb=fe5fe438d31fa46cfb90e98130f3ee5c4031ae0f;hp=9a99d4c8352452adbc25ab860f0a84fe25153e34;hpb=6426145fc9f5b2586962a5aee7c94d8ea3081833;p=platform%2Fupstream%2Fgstreamer.git diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index 9a99d4c..7db416b 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -175,10 +175,8 @@ static guint gst_type_find_element_signals[LAST_SIGNAL] = { 0 }; static void gst_type_find_element_have_type (GstTypeFindElement * typefind, - guint probability, const GstCaps * caps) + guint probability, GstCaps * caps) { - GstCaps *copy; - g_assert (caps != NULL); GST_INFO_OBJECT (typefind, "found caps %" GST_PTR_FORMAT ", probability=%u", @@ -187,12 +185,10 @@ gst_type_find_element_have_type (GstTypeFindElement * typefind, GST_OBJECT_LOCK (typefind); if (typefind->caps) gst_caps_unref (typefind->caps); - typefind->caps = gst_caps_copy (caps); - copy = gst_caps_ref (typefind->caps); + typefind->caps = gst_caps_ref (caps); GST_OBJECT_UNLOCK (typefind); - gst_pad_push_event (typefind->src, gst_event_new_caps (copy)); - gst_caps_unref (copy); + gst_pad_push_event (typefind->src, gst_event_new_caps (caps)); } static void