[ekiga] Made the null audio output initialization code look like the null audio input's one
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Made the null audio output initialization code look like the null audio input's one
- Date: Thu, 21 Oct 2010 18:54:38 +0000 (UTC)
commit 4c4fcbbb54440ffa1598580be8ff055deebc725a
Author: Snark <jpuydt gnome org>
Date: Thu Oct 21 16:19:50 2010 +0200
Made the null audio output initialization code look like the null audio input's one
.../null-audiooutput/audiooutput-main-null.cpp | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/lib/engine/components/null-audiooutput/audiooutput-main-null.cpp b/lib/engine/components/null-audiooutput/audiooutput-main-null.cpp
index 47dc17e..cdba052 100644
--- a/lib/engine/components/null-audiooutput/audiooutput-main-null.cpp
+++ b/lib/engine/components/null-audiooutput/audiooutput-main-null.cpp
@@ -49,17 +49,15 @@ struct NULLAUDIOOUTPUTSpark: public Ekiga::Spark
int* /*argc*/,
char** /*argv*/[])
{
- Ekiga::ServicePtr service = core.get ("null-audio-output");
boost::shared_ptr<Ekiga::AudioOutputCore> audiooutput_core = core.get<Ekiga::AudioOutputCore> ("audiooutput-core");
- if (audiooutput_core && !service) {
+ if (audiooutput_core) {
GMAudioOutputManager_null* audiooutput_manager = new GMAudioOutputManager_null(core);
- service = Ekiga::ServicePtr (new Ekiga::BasicService ("null-audio-output",
- "\tObject bringing in the null audio output"));
audiooutput_core->add_manager (*audiooutput_manager);
- core.add (service);
+ core.add (Ekiga::ServicePtr (new Ekiga::BasicService ("null-audio-output",
+ "\tObject bringing in the null audio output")));
result = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]