Fix detach and attach bug.

This commit is contained in:
Johns 2013-01-05 22:48:01 +01:00
parent 9ec2716026
commit b24409323d
3 changed files with 7 additions and 1 deletions

View File

@ -2810,6 +2810,9 @@ void MainThreadHook(void)
// Suspend/Resume
//////////////////////////////////////////////////////////////////////////////
/// call VDR support function
extern void DelPip(void);
/**
** Suspend plugin.
**
@ -2827,6 +2830,8 @@ void Suspend(int video, int audio, int dox11)
Debug(3, "[softhddev]%s:\n", __FUNCTION__);
DelPip(); // must stop PIP
MyVideoStream->SkipStream = 1;
SkipAudio = 1;

View File

@ -1542,7 +1542,7 @@ static void NewPip(int channel_nr)
/**
** Stop PIP.
*/
static void DelPip(void)
extern "C" void DelPip(void)
{
fprintf(stderr, "pip: stopped\n");

View File

@ -6594,6 +6594,7 @@ static void VdpauExit(void)
VdpauDecoders[i] = NULL;
}
}
VdpauDecoderN = 0;
if (VdpauDevice) {
VdpauExitOutputQueue();