Fixed returned value in osd_FindButton.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 26 Jan 2009 21:45:07 +0000 (22:45 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 26 Jan 2009 21:45:07 +0000 (22:45 +0100)
src/osd/osd.c

index 7e74a97..945bf74 100644 (file)
@@ -691,7 +691,7 @@ osd_button_t *__osd_ButtonFind( vlc_object_t *p_this, int i_x, int i_y,
     {
         vlc_mutex_unlock( lockval.p_address );
         msg_Err( p_this, "osd_ButtonFind failed" );
-        return;
+        return NULL;
     }
 
     p_button = p_osd->p_button;