diff options
author | Steve Huston <shuston@riverace.com> | 2004-01-25 23:15:22 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2004-01-25 23:15:22 +0000 |
commit | 7b01be2525c9f64ca93d135c4529349de5f909bd (patch) | |
tree | c2081e5f13a1b3368f617c87d5602ffe4db03377 /examples/APG | |
parent | 2e1a41d25287377be54c48bb740f695102929570 (diff) | |
download | ATCD-7b01be2525c9f64ca93d135c4529349de5f909bd.tar.gz |
ChangeLogTag:Sun Jan 25 18:05:31 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'examples/APG')
-rw-r--r-- | examples/APG/Streams/RecordingDevice_Text.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/examples/APG/Streams/RecordingDevice_Text.cpp b/examples/APG/Streams/RecordingDevice_Text.cpp index 2f75ea6c2a1..71ba4c76398 100644 --- a/examples/APG/Streams/RecordingDevice_Text.cpp +++ b/examples/APG/Streams/RecordingDevice_Text.cpp @@ -155,22 +155,20 @@ int TextListener::play_message (ACE_FILE_Addr &addr) Command *c = new Command (); c->command_ = Command::CMD_PLAY_MESSAGE; c->extra_data_ = &addr; - c = this->command_stream_->execute (c); return c->numeric_result_; } ACE_FILE_Addr temp ("/tmp/outgoing_message.text"); ACE_FILE_IO *file; - if (type->is_audio ()) file = Util::audio_to_text (addr, temp); else if (type->is_video ()) file = Util::video_to_text (addr, temp); else - ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("Invalid message type %d\n"), - type->get_codec ()), - -1); + ACE_ERROR_RETURN + ((LM_ERROR, ACE_TEXT ("Invalid message type %d\n"), + type->get_codec ()), -1); int rval = this->play_message (temp); file->remove (); return rval; @@ -183,13 +181,9 @@ MessageType *TextListener::record_message (ACE_FILE_Addr &addr) Command *c = new Command (); c->command_ = Command::CMD_RECORD_MESSAGE; c->extra_data_ = &addr; - c = this->command_stream_->execute (c); - if (c->numeric_result_ == -1) - { - return 0; - } + return 0; return new MessageType (MessageType::RAWTEXT, addr); } |