mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
ges-launch: Set restriction on video profile if present
This commit is contained in:
parent
ed92d148db
commit
7240050f75
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue