[MPlayer-cvslog] r38461 - in trunk: gui/dialog/fileselect.c gui/dialog/menu.c help/help_mp-de.h help/help_mp-en.h

ib subversion at mplayerhq.hu
Sun Apr 21 12:45:36 EEST 2024


Author: ib
Date: Sun Apr 21 12:45:35 2024
New Revision: 38461

Log:
Enable playback of audio bin/cue images with Open -> Image as well.

Playback via the menu has only been available with Open -> File so far.

Modified:
   trunk/gui/dialog/fileselect.c
   trunk/gui/dialog/menu.c

Changes in other areas also in this revision:
Modified:
   trunk/help/help_mp-de.h
   trunk/help/help_mp-en.h

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Sun Apr 14 15:12:16 2024	(r38460)
+++ trunk/gui/dialog/fileselect.c	Sun Apr 21 12:45:35 2024	(r38461)
@@ -139,6 +139,7 @@ char * const fsFontFileNames[][2] = {
 int fsLastFontFilterSelected = -1;
 
 char * const fsImageFilterNames[][2] = {
+    { MSGTR_GUI_FilterImageAudio, "*.cue"       },
 #ifdef CONFIG_LIBCDIO
     { MSGTR_GUI_FilterImageCD,  "*.cue"       },
     { MSGTR_GUI_FilterImageVCD, "*.cue"       },
@@ -617,7 +618,7 @@ static void fs_Ok_released(GtkButton *bu
 
         if (strcmp(fsVideoAudioFilterNames[fsLastVideoAudioFilterSelected][0], MSGTR_GUI_FilterFilePlaylist) == 0)
             type = STREAMTYPE_PLAYLIST;
-
+audio:
         uiSetFile(fsSelectedDirectory, fsSelectedFile, type);
         selected = g_strconcat(fsSelectedDirectory, "/", fsSelectedFile, NULL);
 
@@ -651,6 +652,11 @@ static void fs_Ok_released(GtkButton *bu
 
     case FILESELECT_IMAGE:
 
+        if (strcmp(fsImageFilterNames[fsLastImageFilterSelected][0], MSGTR_GUI_FilterImageAudio) == 0) {
+            uiLoadPlay = True;
+            goto audio;
+        }
+
         if (strcmp(fsImageFilterNames[fsLastImageFilterSelected][0], MSGTR_GUI_FilterImageCD) == 0)
             ev = evPlayCD;
         else if (strcmp(fsImageFilterNames[fsLastImageFilterSelected][0], MSGTR_GUI_FilterImageVCD) == 0)

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Sun Apr 14 15:12:16 2024	(r38460)
+++ trunk/gui/dialog/menu.c	Sun Apr 21 12:45:35 2024	(r38461)
@@ -544,9 +544,7 @@ GtkWidget * CreatePopUpMenu( int wType )
         gtk_widget_set_sensitive( MenuItem,FALSE );
        }
 #endif
-#if defined(CONFIG_LIBCDIO) || defined(CONFIG_DVDREAD)
     AddMenuItemEllipsis( SubMenu, image_png, _(MSGTR_GUI_Image), evPlayImage );
-#endif
     AddMenuItemEllipsis( SubMenu, url_png, _(MSGTR_GUI_URL), evLoadURL );
 #ifdef CONFIG_TV
     AddMenuItem( SubMenu, tv_png, _(MSGTR_GUI_TV), evPlayTV );


More information about the MPlayer-cvslog mailing list