-nosound fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8800 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2003-01-05 14:58:05 +00:00
parent 82b0684858
commit 8c71d7179a
1 changed files with 5 additions and 0 deletions

View File

@ -404,6 +404,11 @@ int demux_open_tv(demuxer_t *demuxer)
tv_param_noaudio = 1;
}
/* disable TV audio if -nosound is present */
if (!demuxer->audio || demuxer->audio->id == -2) {
tv_param_noaudio = 1;
}
/* set width */
funcs->control(tvh->priv, TVI_CONTROL_VID_GET_WIDTH, &sh_video->disp_w);