changeset 8799:f08d507eb683

-nosound fix
author henry
date Sun, 05 Jan 2003 14:58:05 +0000
parents b16c91194e40
children 2485bc98772d
files libmpdemux/tv.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tv.c	Sun Jan 05 14:49:57 2003 +0000
+++ b/libmpdemux/tv.c	Sun Jan 05 14:58:05 2003 +0000
@@ -404,6 +404,11 @@
         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);