mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Audio flush only with audio.
This commit is contained in:
parent
3d3a88e76c
commit
b7d372aa39
@ -2591,8 +2591,10 @@ void Clear(void)
|
|||||||
|
|
||||||
VideoResetPacket(MyVideoStream); // terminate work
|
VideoResetPacket(MyVideoStream); // terminate work
|
||||||
MyVideoStream->ClearBuffers = 1;
|
MyVideoStream->ClearBuffers = 1;
|
||||||
|
if (!SkipAudio) {
|
||||||
AudioFlushBuffers();
|
AudioFlushBuffers();
|
||||||
//NewAudioStream = 1;
|
//NewAudioStream = 1;
|
||||||
|
}
|
||||||
// FIXME: audio avcodec_flush_buffers, video is done by VideoClearBuffers
|
// FIXME: audio avcodec_flush_buffers, video is done by VideoClearBuffers
|
||||||
|
|
||||||
// wait for empty buffers
|
// wait for empty buffers
|
||||||
@ -3308,6 +3310,8 @@ void Suspend(int video, int audio, int dox11)
|
|||||||
DelPip(); // must stop PIP
|
DelPip(); // must stop PIP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// FIXME: should not be correct, if not both are suspended!
|
||||||
|
// Move down into if (video) ...
|
||||||
MyVideoStream->SkipStream = 1;
|
MyVideoStream->SkipStream = 1;
|
||||||
SkipAudio = 1;
|
SkipAudio = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user