diff options
Diffstat (limited to 'src/decoder.cc')
-rw-r--r-- | src/decoder.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/decoder.cc b/src/decoder.cc index dea0ae4..0d56aca 100644 --- a/src/decoder.cc +++ b/src/decoder.cc @@ -77,6 +77,8 @@ Decoder::Decoder(Info *ginfo, pthread_mutex_init (&shot_mutex, NULL); shot = NULL; + + mute = false; } Decoder::~Decoder() @@ -160,6 +162,7 @@ void Decoder::decode() eframe->shoot = local_shoot; eframe->freeze = local_freeze; eframe->record = local_record; + eframe->mute = mute; encode_queue->push(eframe); @@ -275,5 +278,9 @@ void Decoder::getScreenshot(Frame *frame, unsigned char *rgb) dv_decoder_free(decoder); } +void Decoder::setMute(bool m) +{ + mute = m; +} #endif /*USE_GUI*/ |