ekiga r7160 - in trunk: . lib/engine/components/gstreamer
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7160 - in trunk: . lib/engine/components/gstreamer
- Date: Mon, 6 Oct 2008 18:02:09 +0000 (UTC)
Author: jpuydt
Date: Mon Oct 6 18:02:09 2008
New Revision: 7160
URL: http://svn.gnome.org/viewvc/ekiga?rev=7160&view=rev
Log:
Mostly fixed bug #554168 -- the rest is a GStreamer problem.
Modified:
trunk/ChangeLog
trunk/lib/engine/components/gstreamer/gst-audioinput.cpp
trunk/lib/engine/components/gstreamer/gst-audiooutput.cpp
Modified: trunk/lib/engine/components/gstreamer/gst-audioinput.cpp
==============================================================================
--- trunk/lib/engine/components/gstreamer/gst-audioinput.cpp (original)
+++ trunk/lib/engine/components/gstreamer/gst-audioinput.cpp Mon Oct 6 18:02:09 2008
@@ -178,7 +178,18 @@
GST::AudioInputManager::set_buffer_size (unsigned /*buffer_size*/,
unsigned /*num_buffers*/)
{
- // FIXME: do I care?
+// FIXME: this is bug #554168 -- GstAppSink doesn't have "blocksize" yet!
+// GstElement* sink = NULL;
+
+// sink = gst_bin_get_by_name (GST_BIN (pipeline), "ekiga_sink");
+
+// if (sink != NULL) {
+
+// g_object_set (G_OBJECT (sink),
+// "blocksize", buffer_size,
+// NULL);
+// g_object_unref (sink);
+// }
}
bool
Modified: trunk/lib/engine/components/gstreamer/gst-audiooutput.cpp
==============================================================================
--- trunk/lib/engine/components/gstreamer/gst-audiooutput.cpp (original)
+++ trunk/lib/engine/components/gstreamer/gst-audiooutput.cpp Mon Oct 6 18:02:09 2008
@@ -182,11 +182,22 @@
}
void
-GST::AudioOutputManager::set_buffer_size (Ekiga::AudioOutputPS /*ps*/,
- unsigned /*buffer_size*/,
+GST::AudioOutputManager::set_buffer_size (Ekiga::AudioOutputPS ps,
+ unsigned buffer_size,
unsigned /*num_buffers*/)
{
- // FIXME: do I care?
+ unsigned ii = (ps == Ekiga::primary)?0:1;
+ GstElement* src = NULL;
+
+ src = gst_bin_get_by_name (GST_BIN (pipeline[ii]), "ekiga_src");
+
+ if (src != NULL) {
+
+ g_object_set (G_OBJECT (src),
+ "blocksize", buffer_size,
+ NULL);
+ g_object_unref (src);
+ }
}
bool
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]