mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Fix detach and attach bug.
This commit is contained in:
		@@ -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;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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");
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user