From: Wim Taymans Date: Mon, 12 Mar 2012 16:16:46 +0000 (+0100) Subject: tests: update for caps api changes X-Git-Tag: 1.19.3~511^2~6696 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=679b9b166f41388768b5df60988180b4f731f96f;p=platform%2Fupstream%2Fgstreamer.git tests: update for caps api changes --- diff --git a/tests/check/elements/decodebin2.c b/tests/check/elements/decodebin2.c index b901ec5..d7086c7 100644 --- a/tests/check/elements/decodebin2.c +++ b/tests/check/elements/decodebin2.c @@ -414,8 +414,7 @@ gst_fake_h264_parser_sink_setcaps (GstPad * pad, GstCaps * caps) const gchar *stream_format; accepted_caps = gst_pad_get_allowed_caps (otherpad); - accepted_caps = gst_caps_make_writable (accepted_caps); - gst_caps_truncate (accepted_caps); + accepted_caps = gst_caps_truncate (accepted_caps); s = gst_caps_get_structure (accepted_caps, 0); stream_format = gst_structure_get_string (s, "stream-format");