if(!name) return;
void oplug_mpeg_dvd_ps(char *inname){char *name=NULL;WAVHeader *info=NULL,tmpinfo;	// do some check on audio & video	// audio must be either AC3 or mp2 at 48 khz		// First check audio	if(!currentaudiostream)	{		GUI_Alert("We need an audio track!");		return;	}	if(audioProcessMode)	{	  AVDMGenericAudioStream *audio=NULL;		audio = buildAudioFilter (currentaudiostream,0,1000);		info=audio->getInfo();		memcpy(&tmpinfo,info,sizeof(tmpinfo));		info=&tmpinfo;		deleteAudioFilter();		}	else	{		info=currentaudiostream->getInfo();	}	if(info->frequency!=48000 )	{		GUI_Alert("audio must be 48khz for DVD PS!");		return;	}	if( (info->encoding!=WAV_MP2 && info->encoding!=WAV_AC3))	{		printf("Encoding : %d\n",info->encoding);		GUI_Alert("audio must be MP2 or AC3 for DVD PS!");		return;	}		// Second, check video	if(strcmp(videoCodecGetName(),"DVD"))	{		GUI_Alert("You need to select DVD as video codec!");		return;	}	 	if(!inname)	{	 	GUI_FileSelWrite("DVD file to save", &name);	}	else	{		name=inname;	}	oplug_mpeg_dvd_run(name);}