diff gui/interface.c @ 33656:3c300c37766f

Remove guiGetEvent type guiSetFileFormat. Directly retrieve the information from the demuxer.
author ib
date Mon, 27 Jun 2011 18:55:18 +0000
parents cbb7cfeb8c71
children c92f23eac7a4
line wrap: on
line diff
--- a/gui/interface.c	Mon Jun 27 14:27:33 2011 +0000
+++ b/gui/interface.c	Mon Jun 27 18:55:18 2011 +0000
@@ -708,10 +708,6 @@
         }
         break;
 
-    case guiSetFileFormat:
-        guiInfo.FileFormat = (int)arg;
-        break;
-
     case guiSetValues:
 
         // video
@@ -765,7 +761,7 @@
         // subtitle
 
 #ifdef CONFIG_DXR3
-        if (video_driver_list && !gstrcmp(video_driver_list[0], "dxr3") && (guiInfo.FileFormat != DEMUXER_TYPE_MPEG_PS) && !gtkVfLAVC) {
+        if (video_driver_list && !gstrcmp(video_driver_list[0], "dxr3") && (((demuxer_t *)mpctx_get_demuxer(guiInfo.mpcontext))->file_format != DEMUXER_TYPE_MPEG_PS) && !gtkVfLAVC) {
             gtkMessageBox(GTK_MB_FATAL, MSGTR_NEEDLAVC);
             guiInfo.Playing = 0;
             return True;