ges-launch: Set restriction on video profile if present

This commit is contained in:
Edward Hervey 2011-01-17 13:59:44 +01:00
parent ed92d148db
commit 7240050f75

View file

@ -136,6 +136,9 @@ make_encoding_profile (gchar * audio, gchar * video, gchar * video_restriction,
caps = gst_caps_from_string (video);
stream = (GstEncodingProfile *)
gst_encoding_video_profile_new (caps, NULL, NULL, 0);
if (video_restriction)
gst_encoding_profile_set_restriction (stream,
gst_caps_from_string (video_restriction));
gst_encoding_container_profile_add_profile (profile, stream);
gst_caps_unref (caps);