]> git.sesse.net Git - vlc/commitdiff
wx/video.cpp: Don't crash with --no-wxwin-embed
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Wed, 18 May 2005 21:25:24 +0000 (21:25 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Wed, 18 May 2005 21:25:24 +0000 (21:25 +0000)
modules/gui/wxwindows/video.cpp

index 095086a2fc439fedc6c5afdcadd965a3fdfed311..b45d22502eda0db0c2f0b4f387ae769167d94077 100644 (file)
@@ -104,7 +104,7 @@ wxWindow *CreateVideoWindow( intf_thread_t *p_intf, wxWindow *p_parent )
 void UpdateVideoWindow( intf_thread_t *p_intf, wxWindow *p_window )
 {
 #if (wxCHECK_VERSION(2,5,0))
-    if( mdate() - ((VideoWindow *)p_window)->i_creation_date < 2000000 )
+    if( p_window && mdate() - ((VideoWindow *)p_window)->i_creation_date < 2000000 )
         return; /* Hack to prevent saving coordinates if window is not yet
                  * properly created. Yuck :( */