From: Wim Taymans Date: Mon, 12 Mar 2012 16:17:01 +0000 (+0100) Subject: update for caps api changes X-Git-Tag: RELEASE-0.11.2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8ba1ef94cab23f71142f747b02cd0368d127dcf;p=platform%2Fupstream%2Fgst-plugins-good.git update for caps api changes --- diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c index 50991a0..aaaa000 100644 --- a/gst/monoscope/gstmonoscope.c +++ b/gst/monoscope/gstmonoscope.c @@ -224,7 +224,7 @@ gst_monoscope_src_negotiate (GstMonoscope * monoscope) { GstCaps *othercaps, *target; GstStructure *structure; - const GstCaps *templ; + GstCaps *templ; GstQuery *query; GstBufferPool *pool = NULL; guint size, min, max, prefix, alignment; @@ -238,15 +238,17 @@ gst_monoscope_src_negotiate (GstMonoscope * monoscope) if (othercaps) { target = gst_caps_intersect (othercaps, templ); gst_caps_unref (othercaps); + gst_caps_unref (templ); if (gst_caps_is_empty (target)) goto no_format; - gst_caps_truncate (target); + target = gst_caps_truncate (target); } else { - target = gst_caps_ref ((GstCaps *) templ); + target = templ; } + target = gst_caps_make_writable (target); structure = gst_caps_get_structure (target, 0); gst_structure_fixate_field_nearest_int (structure, "width", 320); gst_structure_fixate_field_nearest_int (structure, "height", 240);