mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 14:50:07 +00:00
fixed tv detection in demux_open
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3092 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
575828bf12
commit
6f70d068ad
@ -374,13 +374,11 @@ sh_video_t *sh_video=NULL;
|
||||
|
||||
#ifdef USE_TV
|
||||
//=============== Try to open as TV-input: =================
|
||||
if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_TV){
|
||||
if((tv_param_on == 1) &&
|
||||
(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_TV)){
|
||||
demuxer=new_demuxer(stream,DEMUXER_TYPE_TV,audio_id,video_id,dvdsub_id);
|
||||
if(tv_param_on==1)
|
||||
{
|
||||
mp_msg(MSGT_DEMUXER,MSGL_INFO,"Detected TV! ;-)\n");
|
||||
file_format=DEMUXER_TYPE_TV;
|
||||
}
|
||||
mp_msg(MSGT_DEMUXER,MSGL_INFO,"Detected TV! ;-)\n");
|
||||
file_format=DEMUXER_TYPE_TV;
|
||||
}
|
||||
#endif
|
||||
//=============== Try to open as AVI file: =================
|
||||
|
Loading…
Reference in New Issue
Block a user