Commit 3eec6e9c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix NULL dereference with -no-embedded-video (fixes: #3180)

parent c0e40cc1
...@@ -702,7 +702,12 @@ void MainInterface::debug() ...@@ -702,7 +702,12 @@ void MainInterface::debug()
{ {
#ifndef NDEBUG #ifndef NDEBUG
msg_Dbg( p_intf, "Stack Size: %i - %i", stackCentralW->size().height(), size().width() ); msg_Dbg( p_intf, "Stack Size: %i - %i", stackCentralW->size().height(), size().width() );
msg_Dbg( p_intf, "Stack Size: %i - %i", stackCentralW->widget( VIDEO_TAB )->size().height(), stackCentralW->widget( VIDEO_TAB )->size().width() ); if( videoEmbeddedFlag )
msg_Dbg( p_intf, "Stack Size: %i - %i",
stackCentralW->widget( VIDEO_TAB )->size().height(),
stackCentralW->widget( VIDEO_TAB )->size().width() );
else
msg_Dbg( p_intf, "no embedded video" );
msg_Dbg( p_intf, "size: %i - %i", size().height(), size().width() ); msg_Dbg( p_intf, "size: %i - %i", size().height(), size().width() );
msg_Dbg( p_intf, "sizeHint: %i - %i", sizeHint().height(), sizeHint().width() ); msg_Dbg( p_intf, "sizeHint: %i - %i", sizeHint().height(), sizeHint().width() );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment