Qt4 - Be sure of the existence of getInput.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 22 Dec 2007 01:49:50 +0000 (01:49 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 22 Dec 2007 01:49:50 +0000 (01:49 +0000)
modules/gui/qt4/dialogs/mediainfo.cpp

index 63e31bf..c5b597c 100644 (file)
@@ -101,7 +101,8 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
         CONNECT( THEMIM, inputChanged( input_thread_t * ),
                  this, update( input_thread_t * ) );
 
-        p_item = input_GetItem( THEMIM->getInput() );
+        if( THEMIM->getInput() )
+            p_item = input_GetItem( THEMIM->getInput() );
     }
 
     /* Call update by hand, so info is shown from current item too */