]> git.sesse.net Git - vlc/commitdiff
Qt4 - Simple Prefs: add a Prefer System Codecs checkBox in Simple Preferences Panel...
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 30 Apr 2007 17:42:21 +0000 (17:42 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 30 Apr 2007 17:42:21 +0000 (17:42 +0000)
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/ui/sprefs_input.ui

index 8e306c91a1c41996843a88e9bcf931da4cbff46c..58f007c0747ede2ec82e748e722477c3c8d88955 100644 (file)
@@ -247,7 +247,11 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
           CONFIG_GENERIC_NO_BOOL( "ffmpeg-pp-q", Integer, NULL, PostProcLevel );
           CONFIG_GENERIC( "avi-index", IntegerList, NULL, AviRepair );
           CONFIG_GENERIC( "rtsp-tcp", Bool, NULL, RTSP_TCPBox );
-
+#ifdef WIN32
+          CONFIG_GENERIC( "prefer-system-codecs", Bool, NULL, systemCodecBox );
+#else
+          ui.systemCodecBox->hide();
+#endif
           CONFIG_GENERIC( "timeshift-force", Bool, NULL, timeshiftBox );
           CONFIG_GENERIC( "dump-force", Bool, NULL, DumpBox );
 //        CONFIG_GENERIC( "", Bool, NULL, RecordBox ); //FIXME activate record 
index b0756eb5dd8cfa864db02e1387434886c9dfd807..a60c4ac3cc886a6c361eb820906324306b5b11c3 100644 (file)
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>422</width>
-    <height>437</height>
+    <height>478</height>
    </rect>
   </property>
   <property name="windowTitle" >
       <property name="spacing" >
        <number>6</number>
       </property>
-      <item row="2" column="0" >
-       <widget class="QCheckBox" name="RTSP_TCPBox" >
-        <property name="text" >
-         <string>Use RTP over RTSP (TCP)</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="0" >
-       <widget class="QLabel" name="label_6" >
+      <item row="0" column="0" >
+       <widget class="QLabel" name="label_5" >
         <property name="text" >
-         <string>Repair AVI files</string>
+         <string>Post-Processing Quality</string>
         </property>
        </widget>
       </item>
         </property>
        </widget>
       </item>
+      <item row="1" column="0" >
+       <widget class="QLabel" name="label_6" >
+        <property name="text" >
+         <string>Repair AVI files</string>
+        </property>
+       </widget>
+      </item>
       <item row="1" column="1" >
        <widget class="QComboBox" name="AviRepair" />
       </item>
-      <item row="0" column="0" >
-       <widget class="QLabel" name="label_5" >
+      <item row="3" column="0" colspan="2" >
+       <widget class="QCheckBox" name="systemCodecBox" >
         <property name="text" >
-         <string>Post-Processing Quality</string>
+         <string>Use system codecs if available (better quality)</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0" colspan="2" >
+       <widget class="QCheckBox" name="RTSP_TCPBox" >
+        <property name="text" >
+         <string>Use RTP over RTSP (TCP)</string>
         </property>
        </widget>
       </item>