Commit 7d6feff6 authored by Laurent Aimar's avatar Laurent Aimar

Made vout_display_t::manage() optional.

parent 5bea1844
...@@ -293,7 +293,7 @@ struct vout_display_t { ...@@ -293,7 +293,7 @@ struct vout_display_t {
/* Control on the module (mandatory) */ /* Control on the module (mandatory) */
int (*control)(vout_display_t *, int, va_list); int (*control)(vout_display_t *, int, va_list);
/* Manage pending event (mandatory for now) */ /* Manage pending event (optional) */
void (*manage)(vout_display_t *); void (*manage)(vout_display_t *);
/* Private place holder for the vout_display_t module (optional) /* Private place holder for the vout_display_t module (optional)
......
...@@ -161,6 +161,7 @@ static int vout_display_Control(vout_display_t *vd, int query, ...) ...@@ -161,6 +161,7 @@ static int vout_display_Control(vout_display_t *vd, int query, ...)
} }
static void vout_display_Manage(vout_display_t *vd) static void vout_display_Manage(vout_display_t *vd)
{ {
if (vd->manage)
vd->manage(vd); vd->manage(vd);
} }
......
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