Commit 9ad0b173 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: remove unreachable GET_OPENGL controls

This control is only useful if the video output is called "opengl".
parent e623f83c
...@@ -334,12 +334,6 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -334,12 +334,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS; return VLC_SUCCESS;
} }
case VOUT_DISPLAY_GET_OPENGL:
{
vlc_gl_t **gl = va_arg (ap, vlc_gl_t **);
*gl = &sys->gl;
return VLC_SUCCESS;
}
case VOUT_DISPLAY_CHANGE_WINDOW_STATE: case VOUT_DISPLAY_CHANGE_WINDOW_STATE:
{ {
return VLC_SUCCESS; return VLC_SUCCESS;
......
...@@ -272,7 +272,7 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -272,7 +272,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
vlc_gl_ReleaseCurrent (sys->gl); vlc_gl_ReleaseCurrent (sys->gl);
return VLC_SUCCESS; return VLC_SUCCESS;
} }
#if !USE_OPENGL_ES
case VOUT_DISPLAY_GET_OPENGL: case VOUT_DISPLAY_GET_OPENGL:
{ {
vlc_gl_t **pgl = va_arg (ap, vlc_gl_t **); vlc_gl_t **pgl = va_arg (ap, vlc_gl_t **);
...@@ -280,7 +280,7 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -280,7 +280,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
*pgl = sys->gl; *pgl = sys->gl;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
#endif
default: default:
msg_Err (vd, "Unknown request %d", query); msg_Err (vd, "Unknown request %d", query);
} }
......
...@@ -314,13 +314,6 @@ static int Control(vout_display_t *vd, int query, va_list ap) ...@@ -314,13 +314,6 @@ static int Control(vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS; return VLC_SUCCESS;
} }
case VOUT_DISPLAY_GET_OPENGL:
{
vlc_gl_t **gl = va_arg(ap, vlc_gl_t **);
*gl = &sys->gl;
return VLC_SUCCESS;
}
case VOUT_DISPLAY_RESET_PICTURES: case VOUT_DISPLAY_RESET_PICTURES:
assert (0); assert (0);
default: default:
......
...@@ -384,13 +384,6 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -384,13 +384,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS; return VLC_SUCCESS;
} }
case VOUT_DISPLAY_GET_OPENGL:
{
vlc_gl_t **gl = va_arg (ap, vlc_gl_t **);
*gl = &sys->gl;
return VLC_SUCCESS;
}
case VOUT_DISPLAY_RESET_PICTURES: case VOUT_DISPLAY_RESET_PICTURES:
assert (0); assert (0);
default: default:
......
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