Commit 10ce85d6 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: fix a rare crash...

To crash it:
- Uncheck preference all->Video->Embedded video
- save and exit vlc.
- open VLC
- Open a video file with vlc, turn on visualization.
- ReCheck preferences all->Video->Embedded video and save preferences.
- Press "N" at the keyboard

Close #2486.
parent 238349f8
...@@ -704,6 +704,7 @@ WId MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x, ...@@ -704,6 +704,7 @@ WId MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
unsigned int *pi_height ) unsigned int *pi_height )
{ {
/* Request the videoWidget */ /* Request the videoWidget */
if( !videoWidget ) return 0;
WId ret = videoWidget->request( p_nvout,pi_x, pi_y, WId ret = videoWidget->request( p_nvout,pi_x, pi_y,
pi_width, pi_height, b_keep_size ); pi_width, pi_height, b_keep_size );
if( ret ) /* The videoWidget is available */ if( ret ) /* The videoWidget is available */
......
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