[ekiga] gstreamer: set more properties of the appsrc element (and put caps as properties), and remove useles
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] gstreamer: set more properties of the appsrc element (and put caps as properties), and remove useles
- Date: Sun, 30 Sep 2012 11:02:01 +0000 (UTC)
commit c7a32051a9dd0749f73a007f88c71c4e865f11aa
Author: Julien Puydt <jpuydt free fr>
Date: Sun Sep 30 12:52:58 2012 +0200
gstreamer: set more properties of the appsrc element (and put caps as properties), and remove useless audiorate element
plugins/gstreamer/gst-audiooutput.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/plugins/gstreamer/gst-audiooutput.cpp b/plugins/gstreamer/gst-audiooutput.cpp
index e0ba71a..9d2004a 100644
--- a/plugins/gstreamer/gst-audiooutput.cpp
+++ b/plugins/gstreamer/gst-audiooutput.cpp
@@ -106,14 +106,17 @@ GST::AudioOutputManager::open (Ekiga::AudioOutputPS ps,
if ( !already_detected_devices)
detect_devices ();
- command = g_strdup_printf ("appsrc is-live=true name=ekiga_src"
- " ! audio/x-raw-int"
+ command = g_strdup_printf ("appsrc"
+ " is-live=true format=time do-timestamp=true"
+ " min-latency=1 max-latency=5000000"
+ " name=ekiga_src"
+ " caps=audio/x-raw-int"
",rate=%d"
",channels=%d"
",width=%d"
",depth=%d"
",signed=true,endianness=1234"
- " ! audiorate ! %s",
+ " ! %s",
samplerate, channels, bits_per_sample, bits_per_sample,
devices_by_name[std::pair<std::string,std::string>(current_state[ii].device.source, current_state[ii].device.name)].c_str ());
worker[ii] = gst_helper_new (command);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]