]> git.sesse.net Git - vlc/commitdiff
Don't check for impossible error involving object types
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 4 Jun 2008 18:43:38 +0000 (21:43 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 4 Jun 2008 18:43:38 +0000 (21:43 +0300)
modules/gui/beos/PreferencesWindow.cpp
modules/gui/macosx/prefs.m
modules/gui/qt4/input_manager.cpp
modules/gui/wince/preferences.cpp

index e033008742b098117a42c30d77e6b995811e4180..2370d91568ac021fcbc82395409192bd88f60261 100644 (file)
@@ -445,11 +445,9 @@ ConfigItem::ConfigItem( intf_thread_t * _p_intf, char * name,
         }
     }
 
-    if( !p_module || p_module->i_object_type != VLC_OBJECT_MODULE )
-    {
+    if( !p_module )
         /* Shouldn't happen */
         return;
-    }
 
     module_config_t * p_item;
     p_item = fSubModule ? ((module_t *)p_module->p_parent)->p_config :
index 2e708b22cd76995f60298ecccbbb99097ef493ac..91c7b920fc1ebe5ea939318a082e93eccbed5ade 100644 (file)
@@ -552,7 +552,7 @@ static VLCTreeItem *o_root_item = nil;
         if( i_object_category == -1 )
         {
             p_parser = (module_t *) vlc_object_get( i_object_id );
-            if( !p_parser || ((vlc_object_t*)p_parser)->i_object_type != VLC_OBJECT_MODULE )
+            if( !p_parser )
             {
                 /* 0OOoo something went really bad */
                 return nil;
index b62a10e9eae71c41867fe788df1851124f501915..7804b9cb6932b632012dee18fa195679c6182db3 100644 (file)
@@ -509,7 +509,7 @@ void MainInputManager::customEvent( QEvent *event )
     }
 
     /* Should be PLItemChanged Event */
-    if( VLC_OBJECT_INTF == p_intf->i_object_type )
+    if( VLC_OBJECT_INTF == p_intf->i_object_type ) /* FIXME: don't use object type */
     {
         vlc_mutex_lock( &p_intf->change_lock );
         if( p_input && ( p_input->b_dead || p_input->b_die ) )
index 87384778a47613688407f431c1559e7b220a5760..3905575d03455451516d9b1bb66fb96d4fe9c8b3 100644 (file)
@@ -706,11 +706,6 @@ PrefsPanel::PrefsPanel( HWND parent, HINSTANCE hInst, intf_thread_t *_p_intf,
     {
         /* Get a pointer to the module */
         p_module = (module_t *)vlc_object_get( i_object_id );
-        if( p_module->i_object_type != VLC_OBJECT_MODULE )
-        {
-            /* 0OOoo something went really bad */
-            return;
-        }
 
         /* Enumerate config options and add corresponding config boxes
          * (submodules don't have config options, they are stored in the