]> git.sesse.net Git - vlc/commitdiff
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 63e31bf567ee9d6bdcc695acdbf37519113cbe51..c5b597c6b4d0952aa68c4055f9c0ec018f95b498 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 */