[longomatch] Set queue properties in a single call



commit 5469767a5e00746f7b91eee0388dbe5a709d263e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Mar 28 15:57:03 2013 +0100

    Set queue properties in a single call

 libcesarplayer/gst-video-encoder.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/libcesarplayer/gst-video-encoder.c b/libcesarplayer/gst-video-encoder.c
index 83c9c7a..5c5ddea 100644
--- a/libcesarplayer/gst-video-encoder.c
+++ b/libcesarplayer/gst-video-encoder.c
@@ -405,12 +405,10 @@ gst_video_encoder_select_next_file (GstVideoEncoder *gve)
   } else {
     GST_INFO_OBJECT (gve, "No more files, sending EOS");
     /* Enlarge queues to avoid deadlocks */
-    g_object_set (gve->priv->aqueue, "max-size-time", 0, NULL);
-    g_object_set (gve->priv->aqueue, "max-size-bytes", 0, NULL);
-    g_object_set (gve->priv->aqueue, "max-size-buffers", 0, NULL);
-    g_object_set (gve->priv->vqueue, "max-size-time", 0, NULL);
-    g_object_set (gve->priv->vqueue, "max-size-bytes", 0, NULL);
-    g_object_set (gve->priv->vqueue, "max-size-buffers", 0, NULL);
+    g_object_set (gve->priv->aqueue, "max-size-time", 0,
+        "max-size-bytes", 0, "max-size-buffers", 0, NULL);
+    g_object_set (gve->priv->vqueue, "max-size-time", 0,
+        "max-size-bytes", 0, "max-size-buffers", 0, NULL);
     gst_pad_send_event (audio_pad, gst_event_new_eos());
     gst_pad_send_event (video_pad, gst_event_new_eos());
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]