fix compilation without TV support

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9774 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2003-03-31 20:44:20 +00:00
parent a66cc22948
commit a62e8355b5
1 changed files with 2 additions and 0 deletions

View File

@ -543,10 +543,12 @@ if(strncmp("dvbin://",filename,8) == 0)
if (!stream) return(NULL);
if(strncmp("mf://",filename,5) == 0) {
*file_format = DEMUXER_TYPE_MF;
#ifdef USE_TV
} else {
*file_format = DEMUXER_TYPE_TV;
if(filename[5] != '\0')
tv_param_channel = strdup(filename + 5);
#endif
}
stream->url= filename[5] != '\0' ? strdup(filename + 5) : NULL;
return(stream);