diff options
author | deva <deva> | 2006-07-20 17:53:17 +0000 |
---|---|---|
committer | deva <deva> | 2006-07-20 17:53:17 +0000 |
commit | 7d39c063ea84b9b30dbe669ac4ae641a49506836 (patch) | |
tree | ef1ead10d1736e9ad7ffe139872c86fd2ee00901 /server/audio_encoder.cc | |
parent | c8df40b62cf30029a4acd1a57c8c54add54dda9b (diff) |
Utilized the global info object.
Utilized the global info object.
Utilized the global info object.
Diffstat (limited to 'server/audio_encoder.cc')
-rw-r--r-- | server/audio_encoder.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/server/audio_encoder.cc b/server/audio_encoder.cc index 6e412c3..02538f2 100644 --- a/server/audio_encoder.cc +++ b/server/audio_encoder.cc @@ -28,14 +28,14 @@ #include "audio_encoder.h" #include "util.h" +#include "info.h" + #include "liblame_wrapper.h" AudioEncoder::AudioEncoder(ThreadSafeQueuePriority *audio_input_queue, - ThreadSafeQueuePriority *audio_output_queue, - Info *i) + ThreadSafeQueuePriority *audio_output_queue) { - info = i; - info->info("AudioEncoder"); + MIaV::info->info("AudioEncoder"); running = true; @@ -49,7 +49,7 @@ AudioEncoder::~AudioEncoder() void AudioEncoder::thread_main() { - info->info("AudioEncoder::run"); + MIaV::info->info("AudioEncoder::run"); // Run with slightly lower priority than MovEncoderWriter nice(1); @@ -57,16 +57,16 @@ void AudioEncoder::thread_main() Frame *in_frame = NULL; Frame *out_frame = NULL; - LibLAMEWrapper lame(info); + LibLAMEWrapper lame; while(running) { in_frame = input_queue->pop(); - if(in_frame == NULL) info->error("AudioEncoder: in_frame == NULL!"); + if(in_frame == NULL) MIaV::info->error("AudioEncoder: in_frame == NULL!"); // Check for end of stream if(in_frame->endOfFrameStream == true) { - info->info("endOfFrameStream in AudioEncoder"); + MIaV::info->info("endOfFrameStream in AudioEncoder"); running = false; out_frame = lame.close(); } else { @@ -82,7 +82,7 @@ void AudioEncoder::thread_main() output_queue->push(out_frame); } - info->info("AudioEncoder::stop"); + MIaV::info->info("AudioEncoder::stop"); } |