diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-05 14:58:05 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-05 14:58:05 +0000 |
commit | 8c71d7179a59ad012b8c556a41a46ba03500742a (patch) | |
tree | 08e935ef6ee611647c823058e7cd1a324945d150 /libmpdemux/tv.c | |
parent | 82b0684858f9b29265cf8bd85373fff59cbe3f31 (diff) | |
download | mpv-8c71d7179a59ad012b8c556a41a46ba03500742a.tar.bz2 mpv-8c71d7179a59ad012b8c556a41a46ba03500742a.tar.xz |
-nosound fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8800 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/tv.c')
-rw-r--r-- | libmpdemux/tv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmpdemux/tv.c b/libmpdemux/tv.c index 95350c8da5..f3a42d156e 100644 --- a/libmpdemux/tv.c +++ b/libmpdemux/tv.c @@ -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); |