]> git.sesse.net Git - vlc/commitdiff
Fix segmentation fault
authorJean-Paul Saman <jpsaman@videolan.org>
Tue, 23 Aug 2005 17:59:49 +0000 (17:59 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 23 Aug 2005 17:59:49 +0000 (17:59 +0000)
src/osd/osd.c

index 9e8c1bf530e382522eb54d23c525de23f09fb920..36a7f4cfc8f1ef481036c6b15dd1e761595ced06 100644 (file)
@@ -244,9 +244,7 @@ void __osd_MenuHide( vlc_object_t *p_this )
 #endif\r
     osd_UpdateState( p_osd->p_state,\r
                 p_osd->p_state->i_x, p_osd->p_state->i_y,\r
-                p_osd->p_state->p_visible->p_current_state->p_pic->p[Y_PLANE].i_visible_pitch,\r
-                p_osd->p_state->p_visible->p_current_state->p_pic->p[Y_PLANE].i_visible_lines,\r
-                NULL );\r
+                0, 0, NULL );\r
     osd_SetMenuUpdate( p_osd, VLC_TRUE );\r
 \r
     vlc_object_release( (vlc_object_t*) p_osd );\r
@@ -566,7 +564,6 @@ void __osd_Volume( vlc_object_t *p_this )
         /* Update the volume state images to match the current volume */\r
         i_volume = config_GetInt( p_this, "volume" );\r
         i_steps = osd_VolumeStep( p_this, i_volume, p_button->i_ranges );\r
-        msg_Err( p_this, "OSD steps=%d", i_steps );\r
         p_button->p_current_state = osd_VolumeStateChange( p_button->p_states, i_steps );\r
 \r
         osd_UpdateState( p_osd->p_state,\r