[MPlayer-cvslog] r38111 - trunk/gui/dialog/fileselect.c

ib subversion at mplayerhq.hu
Sun Jun 10 18:59:24 EEST 2018


Author: ib
Date: Sun Jun 10 18:59:24 2018
New Revision: 38111

Log:
Don't unconditionally add a file selector playlist filter.

If playlist parsing is disabled by MPlayer, playlist playback will be
impossible. So check for it and omit the playlist filter in case the
parsing is disabled. It would otherwise be confusing for the user to be
able to select a playlist that won't play then.

Modified:
   trunk/gui/dialog/fileselect.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Sun Jun 10 18:53:58 2018	(r38110)
+++ trunk/gui/dialog/fileselect.c	Sun Jun 10 18:59:24 2018	(r38111)
@@ -52,6 +52,7 @@
 #include "config.h"
 #include "help_mp.h"
 #include "mpcommon.h"
+#include "mplayer.h"
 #include "libavutil/common.h"
 #include "stream/stream.h"
 
@@ -870,6 +871,7 @@ void ShowFileSelector(int type)
         fsList_items = NULL;
 
         for (i = 0; fsVideoAudioFilterNames[i][0]; i++)
+            if ((strcmp(fsVideoAudioFilterNames[i][0], MSGTR_GUI_FilterFilePlaylist) != 0) || allow_playlist_parsing)
             fsList_items = g_list_append(fsList_items, fsVideoAudioFilterNames[i][0]);
 
         k = fsLastVideoAudioFilterSelected;


More information about the MPlayer-cvslog mailing list