Qt4 - Be sure of the existence of getInput.
[vlc.git] / 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 */