[ekiga] Uncommented the block size setting code in the gstreamer plugin



commit 5a16c78212c856e19e5a62e5049ec527320b27d2
Author: Julien Puydt <jpuydt gnome org>
Date:   Sun Jul 11 22:18:01 2010 +0200

    Uncommented the block size setting code in the gstreamer plugin
    
    Indeed GstAppSink does have a "blocksize" property now.

 plugins/gstreamer/gst-audioinput.cpp |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/plugins/gstreamer/gst-audioinput.cpp b/plugins/gstreamer/gst-audioinput.cpp
index da15266..a26be76 100644
--- a/plugins/gstreamer/gst-audioinput.cpp
+++ b/plugins/gstreamer/gst-audioinput.cpp
@@ -181,21 +181,20 @@ GST::AudioInputManager::close ()
 }
 
 void
-GST::AudioInputManager::set_buffer_size (unsigned /*buffer_size*/,
+GST::AudioInputManager::set_buffer_size (unsigned buffer_size,
 					 unsigned /*num_buffers*/)
 {
-// FIXME: this is bug #554168 -- GstAppSink doesn't have "blocksize" yet!
-//   GstElement* sink = NULL;
+  GstElement* sink = NULL;
 
-//   sink = gst_bin_get_by_name (GST_BIN (pipeline), "ekiga_sink");
+  sink = gst_bin_get_by_name (GST_BIN (pipeline), "ekiga_sink");
 
-//   if (sink != NULL) {
+  if (sink != NULL) {
 
-//     g_object_set (G_OBJECT (sink),
-// 		  "blocksize", buffer_size,
-// 		  NULL);
-//     g_object_unref (sink);
-//   }
+    g_object_set (G_OBJECT (sink),
+		  "blocksize", buffer_size,
+		  NULL);
+    g_object_unref (sink);
+  }
 }
 
 bool



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