[MPlayer-cvslog] r38103 - trunk/gui/dialog/menu.c

ib subversion at mplayerhq.hu
Thu Apr 26 06:59:00 EEST 2018


Author: ib
Date: Thu Apr 26 06:59:00 2018
New Revision: 38103

Log:
Revise DVD audio track selection.

Check whether there are at least two DVD audio tracks before offering
the user an audio track selection. It makes no sense to have that
selection menu for just one audio track.

This is consistent with the audio track selection menu for all other
stream types now.

Modified:
   trunk/gui/dialog/menu.c

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Thu Apr 26 05:38:52 2018	(r38102)
+++ trunk/gui/dialog/menu.c	Thu Apr 26 06:59:00 2018	(r38103)
@@ -726,6 +726,8 @@ GtkWidget * CreatePopUpMenu( int wType )
       {
        char tmp[64]; int i;
 
+       if (guiInfo.AudioStreams > 1)
+        {
        DVDAudioLanguageMenu=AddSubMenu( Menu, audio_track_png, MSGTR_GUI_AudioTracks );
 
        for ( i=0;i < guiInfo.AudioStreams;i++ )
@@ -737,6 +739,7 @@ GtkWidget * CreatePopUpMenu( int wType )
                            demuxer->audio->id == guiInfo.AudioStream[i].id,
                            ( guiInfo.AudioStream[i].id << 16 ) + ivSetDVDAudio );
         }
+        }
       }
 
      if ( guiInfo.Subtitles && ( guiInfo.StreamType == STREAMTYPE_DVD ) )


More information about the MPlayer-cvslog mailing list