mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
GESTimelinePipeline: Limit encodebin buffering to 1 buffer
We don't need to queue more than that since we only need thread decoupling and the various streams going into encodebin are guaranteed to come from different streaming threads (since they're separate gnlcomposition).
This commit is contained in:
parent
51b660eca3
commit
e747ad4867
1 changed files with 5 additions and 0 deletions
|
@ -89,6 +89,11 @@ ges_timeline_pipeline_init (GESTimelinePipeline * self)
|
|||
self->playsink = gst_element_factory_make ("playsink", "internal-sinks");
|
||||
self->encodebin =
|
||||
gst_element_factory_make ("encodebin", "internal-encodebin");
|
||||
/* Limit encodebin buffering to 1 buffer since we know the various
|
||||
* stream fed to it are decoupled already */
|
||||
g_object_set (self->encodebin, "queue-buffers-max", 1,
|
||||
"queue-bytes-max", 0, "queue-time-max", 0,
|
||||
NULL);
|
||||
|
||||
if (G_UNLIKELY (self->playsink == NULL))
|
||||
GST_ERROR_OBJECT (self, "Can't create playsink instance !");
|
||||
|
|
Loading…
Reference in a new issue