From: Mathieu Duponchelle Date: Tue, 10 Sep 2013 16:17:57 +0000 (+0200) Subject: tests: integration: set restriction_caps on the video encoding profile X-Git-Tag: 1.19.3~493^2~1712 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=667b33cb96db2f53dba4c1f7c992f52abd5aa828;p=platform%2Fupstream%2Fgstreamer.git tests: integration: set restriction_caps on the video encoding profile We need this cause now videomixer renegotiates downstream. --- diff --git a/tests/check/ges/integration.c b/tests/check/ges/integration.c index 4d1fbed..b1c32a3 100644 --- a/tests/check/ges/integration.c +++ b/tests/check/ges/integration.c @@ -99,7 +99,7 @@ create_profile (const char *container, const char *container_preset, { GstEncodingContainerProfile *cprof = NULL; GstEncodingProfile *prof = NULL; - GstCaps *caps; + GstCaps *caps, *restriction_caps; /* If we have both audio and video, we must have container */ if (audio && video && !container) @@ -130,9 +130,12 @@ create_profile (const char *container, const char *container_preset, gst_caps_unref (caps); } if (video) { + restriction_caps = + gst_caps_new_simple ("video/x-raw", "framerate", GST_TYPE_FRACTION, 30, + 1, "format", G_TYPE_STRING, "I420", NULL); caps = gst_caps_from_string (video); prof = (GstEncodingProfile *) gst_encoding_video_profile_new (caps, NULL, - NULL, 0); + restriction_caps, 0); if (!prof) goto beach; if (video_preset)