mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
track: Enhance restriction capsfilter name
This commit is contained in:
parent
0d870428ed
commit
ea2b5bded8
1 changed files with 9 additions and 0 deletions
|
@ -541,19 +541,28 @@ ges_track_constructed (GObject * object)
|
|||
{
|
||||
GESTrack *self = GES_TRACK (object);
|
||||
gchar *componame = NULL;
|
||||
gchar *capsfiltername = NULL;
|
||||
|
||||
if (self->type == GES_TRACK_TYPE_VIDEO) {
|
||||
componame =
|
||||
g_strdup_printf ("video_%s", GST_OBJECT_NAME (self->priv->composition));
|
||||
capsfiltername =
|
||||
g_strdup_printf ("video_restriction_%s",
|
||||
GST_OBJECT_NAME (self->priv->capsfilter));
|
||||
} else if (self->type == GES_TRACK_TYPE_AUDIO) {
|
||||
componame =
|
||||
g_strdup_printf ("audio_%s", GST_OBJECT_NAME (self->priv->composition));
|
||||
capsfiltername =
|
||||
g_strdup_printf ("audio_restriction_%s",
|
||||
GST_OBJECT_NAME (self->priv->capsfilter));
|
||||
}
|
||||
|
||||
if (componame) {
|
||||
gst_object_set_name (GST_OBJECT (self->priv->composition), componame);
|
||||
gst_object_set_name (GST_OBJECT (self->priv->capsfilter), capsfiltername);
|
||||
|
||||
g_free (componame);
|
||||
g_free (capsfiltername);
|
||||
}
|
||||
|
||||
if (!gst_bin_add (GST_BIN (self), self->priv->composition))
|
||||
|
|
Loading…
Reference in a new issue