mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
ges-launcher: Fix for forcing container profiles
If the input profile doesn't have a container, it's fine since we are overriding it. Just add the elementary stream to the target container profile Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6674>
This commit is contained in:
parent
26acd70c74
commit
a2254a4968
1 changed files with 12 additions and 4 deletions
|
@ -671,12 +671,20 @@ _set_rendering_details (GESLauncher * self)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (tmp = (GList *)
|
/* Existing profile is a single-elementary-stream profile, put it in the
|
||||||
gst_encoding_container_profile_get_profiles
|
* new target container profile */
|
||||||
(GST_ENCODING_CONTAINER_PROFILE (prof)); tmp; tmp = tmp->next) {
|
if (!GST_IS_ENCODING_CONTAINER_PROFILE (prof)) {
|
||||||
gst_encoding_container_profile_add_profile
|
gst_encoding_container_profile_add_profile
|
||||||
(GST_ENCODING_CONTAINER_PROFILE (new_prof),
|
(GST_ENCODING_CONTAINER_PROFILE (new_prof),
|
||||||
GST_ENCODING_PROFILE (gst_encoding_profile_ref (tmp->data)));
|
GST_ENCODING_PROFILE (gst_encoding_profile_ref (prof)));
|
||||||
|
} else {
|
||||||
|
for (tmp = (GList *)
|
||||||
|
gst_encoding_container_profile_get_profiles
|
||||||
|
(GST_ENCODING_CONTAINER_PROFILE (prof)); tmp; tmp = tmp->next) {
|
||||||
|
gst_encoding_container_profile_add_profile
|
||||||
|
(GST_ENCODING_CONTAINER_PROFILE (new_prof),
|
||||||
|
GST_ENCODING_PROFILE (gst_encoding_profile_ref (tmp->data)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_encoding_profile_unref (prof);
|
gst_encoding_profile_unref (prof);
|
||||||
|
|
Loading…
Reference in a new issue