mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
GESTimelinePipeline: Fix usage of encodebin
The property name is now avoid-reencoding
This commit is contained in:
parent
785c9d9253
commit
74d41ef414
1 changed files with 3 additions and 3 deletions
|
@ -136,7 +136,7 @@ ges_timeline_pipeline_init (GESTimelinePipeline * self)
|
|||
* stream fed to it are decoupled already */
|
||||
g_object_set (self->priv->encodebin, "queue-buffers-max", (guint32) 1,
|
||||
"queue-bytes-max", (guint32) 0, "queue-time-max", (guint64) 0,
|
||||
"use-smartencoder", TRUE, NULL);
|
||||
"avoid-reencoding", TRUE, NULL);
|
||||
|
||||
if (G_UNLIKELY (self->priv->playsink == NULL))
|
||||
GST_ERROR_OBJECT (self, "Can't create playsink instance !");
|
||||
|
@ -633,7 +633,7 @@ ges_timeline_pipeline_set_render_settings (GESTimelinePipeline * pipeline,
|
|||
|
||||
if (pipeline->priv->profile)
|
||||
gst_encoding_profile_unref (pipeline->priv->profile);
|
||||
g_object_set (pipeline->priv->encodebin, "use-smartencoder",
|
||||
g_object_set (pipeline->priv->encodebin, "avoid-reencoding",
|
||||
!(!(pipeline->priv->mode & TIMELINE_MODE_SMART_RENDER)), NULL);
|
||||
g_object_set (pipeline->priv->encodebin, "profile", profile, NULL);
|
||||
pipeline->priv->profile =
|
||||
|
@ -722,7 +722,7 @@ ges_timeline_pipeline_set_mode (GESTimelinePipeline * pipeline,
|
|||
GST_ERROR_OBJECT (pipeline, "Couldn't add URI sink");
|
||||
return FALSE;
|
||||
}
|
||||
g_object_set (pipeline->priv->encodebin, "use-smartencoder",
|
||||
g_object_set (pipeline->priv->encodebin, "avoid-reencoding",
|
||||
!(!(mode & TIMELINE_MODE_SMART_RENDER)), NULL);
|
||||
|
||||
gst_element_link_pads_full (pipeline->priv->encodebin, "src",
|
||||
|
|
Loading…
Reference in a new issue