diff options
author | Johns <johns98@gmx.net> | 2014-02-18 10:12:34 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2014-02-18 10:12:34 +0100 |
commit | b7d372aa397624d510f7bdbeea030c6900698786 (patch) | |
tree | 6e1c5381582f733df0612a1dce3ac3df8bf7203a /softhddev.c | |
parent | 3d3a88e76c14a2c89169b83f241cff4d34158776 (diff) | |
download | vdr-plugin-softhddevice-b7d372aa397624d510f7bdbeea030c6900698786.tar.gz vdr-plugin-softhddevice-b7d372aa397624d510f7bdbeea030c6900698786.tar.bz2 |
Audio flush only with audio.
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/softhddev.c b/softhddev.c index e5c937e..e3c09d1 100644 --- a/softhddev.c +++ b/softhddev.c @@ -2591,8 +2591,10 @@ void Clear(void) VideoResetPacket(MyVideoStream); // terminate work MyVideoStream->ClearBuffers = 1; - AudioFlushBuffers(); - //NewAudioStream = 1; + if (!SkipAudio) { + AudioFlushBuffers(); + //NewAudioStream = 1; + } // FIXME: audio avcodec_flush_buffers, video is done by VideoClearBuffers // wait for empty buffers @@ -3308,6 +3310,8 @@ void Suspend(int video, int audio, int dox11) DelPip(); // must stop PIP #endif + // FIXME: should not be correct, if not both are suspended! + // Move down into if (video) ... MyVideoStream->SkipStream = 1; SkipAudio = 1; |