]> git.sesse.net Git - vlc/commitdiff
Made vout_display_t::manage() optional.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 26 Sep 2009 19:12:10 +0000 (21:12 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 27 Sep 2009 09:52:13 +0000 (11:52 +0200)
include/vlc_vout_display.h
src/video_output/display.c

index 5ac63e9b3eec2c398c82e5238b97a128eebb9228..9f97fbadc12b86dcc40914a2c48087f6e60fa78b 100644 (file)
@@ -293,7 +293,7 @@ struct vout_display_t {
     /* Control on the module (mandatory) */
     int        (*control)(vout_display_t *, int, va_list);
 
-    /* Manage pending event (mandatory for now) */
+    /* Manage pending event (optional) */
     void       (*manage)(vout_display_t *);
 
     /* Private place holder for the vout_display_t module (optional)
index 2bcef79a5d6b40a35939e55556ac6bc3bcc479a6..e3a3305c5bc74596607a0cf769fadb14eaf06bdd 100644 (file)
@@ -161,7 +161,8 @@ static int vout_display_Control(vout_display_t *vd, int query, ...)
 }
 static void vout_display_Manage(vout_display_t *vd)
 {
-    vd->manage(vd);
+    if (vd->manage)
+        vd->manage(vd);
 }
 
 /* */