mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Fix detach and attach bug.
This commit is contained in:
parent
9ec2716026
commit
b24409323d
@ -2810,6 +2810,9 @@ void MainThreadHook(void)
|
|||||||
// Suspend/Resume
|
// Suspend/Resume
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/// call VDR support function
|
||||||
|
extern void DelPip(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Suspend plugin.
|
** Suspend plugin.
|
||||||
**
|
**
|
||||||
@ -2827,6 +2830,8 @@ void Suspend(int video, int audio, int dox11)
|
|||||||
|
|
||||||
Debug(3, "[softhddev]%s:\n", __FUNCTION__);
|
Debug(3, "[softhddev]%s:\n", __FUNCTION__);
|
||||||
|
|
||||||
|
DelPip(); // must stop PIP
|
||||||
|
|
||||||
MyVideoStream->SkipStream = 1;
|
MyVideoStream->SkipStream = 1;
|
||||||
SkipAudio = 1;
|
SkipAudio = 1;
|
||||||
|
|
||||||
|
@ -1542,7 +1542,7 @@ static void NewPip(int channel_nr)
|
|||||||
/**
|
/**
|
||||||
** Stop PIP.
|
** Stop PIP.
|
||||||
*/
|
*/
|
||||||
static void DelPip(void)
|
extern "C" void DelPip(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "pip: stopped\n");
|
fprintf(stderr, "pip: stopped\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user