mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +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,6 +671,13 @@ _set_rendering_details (GESLauncher * self)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Existing profile is a single-elementary-stream profile, put it in the
|
||||||
|
* new target container profile */
|
||||||
|
if (!GST_IS_ENCODING_CONTAINER_PROFILE (prof)) {
|
||||||
|
gst_encoding_container_profile_add_profile
|
||||||
|
(GST_ENCODING_CONTAINER_PROFILE (new_prof),
|
||||||
|
GST_ENCODING_PROFILE (gst_encoding_profile_ref (prof)));
|
||||||
|
} else {
|
||||||
for (tmp = (GList *)
|
for (tmp = (GList *)
|
||||||
gst_encoding_container_profile_get_profiles
|
gst_encoding_container_profile_get_profiles
|
||||||
(GST_ENCODING_CONTAINER_PROFILE (prof)); tmp; tmp = tmp->next) {
|
(GST_ENCODING_CONTAINER_PROFILE (prof)); tmp; tmp = tmp->next) {
|
||||||
|
@ -678,6 +685,7 @@ _set_rendering_details (GESLauncher * self)
|
||||||
(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 (tmp->data)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gst_encoding_profile_unref (prof);
|
gst_encoding_profile_unref (prof);
|
||||||
prof = new_prof;
|
prof = new_prof;
|
||||||
|
|
Loading…
Reference in a new issue