mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
vo: remove unused VOCTRL_GET_PANSCAN
It was used to determine whether the VO supports VOCTRL_SET_PANSCAN. With all those changes to property semantics this became unnecessary, and its only use was dropped at some point.
This commit is contained in:
parent
a2fce5ba26
commit
7177ef3e1c
@ -56,7 +56,6 @@ enum mp_voctrl {
|
||||
/* start/resume playback */
|
||||
VOCTRL_RESUME,
|
||||
|
||||
VOCTRL_GET_PANSCAN,
|
||||
VOCTRL_SET_PANSCAN,
|
||||
VOCTRL_SET_EQUALIZER, // struct voctrl_set_equalizer_args*
|
||||
VOCTRL_GET_EQUALIZER, // struct voctrl_get_equalizer_args*
|
||||
|
@ -1280,8 +1280,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
calc_fs_rect(priv);
|
||||
priv->vo->want_redraw = true;
|
||||
return VO_TRUE;
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SCREENSHOT_WIN:
|
||||
*(struct mp_image **)data = get_window_screenshot(priv);
|
||||
return VO_TRUE;
|
||||
|
@ -477,8 +477,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
case VOCTRL_REDRAW_FRAME:
|
||||
draw_image(vo, p->last_input);
|
||||
return VO_TRUE;
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
if (vo->config_ok)
|
||||
reconfig(vo, vo->params);
|
||||
|
@ -279,8 +279,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
struct gl_priv *p = vo->priv;
|
||||
|
||||
switch (request) {
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
resize(p);
|
||||
return VO_TRUE;
|
||||
|
@ -448,8 +448,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
vo->want_redraw = true;
|
||||
vo_wakeup(vo);
|
||||
return VO_TRUE;
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_GET_EQUALIZER: {
|
||||
struct voctrl_get_equalizer_args *args = data;
|
||||
pthread_mutex_lock(&p->ctx->lock);
|
||||
|
@ -616,8 +616,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
set_geometry(vo);
|
||||
vo->want_redraw = true;
|
||||
return VO_TRUE;
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
if (p->renderer_enabled)
|
||||
resize(vo);
|
||||
|
@ -980,8 +980,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
case VOCTRL_REDRAW_FRAME:
|
||||
draw_image(vo, NULL);
|
||||
return 1;
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
force_resize(vo);
|
||||
return VO_TRUE;
|
||||
|
@ -545,8 +545,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
p->output_surface = p->visible_surface;
|
||||
draw_osd(vo);
|
||||
return true;
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
resize(p);
|
||||
return VO_TRUE;
|
||||
|
@ -1087,8 +1087,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
check_preemption(vo);
|
||||
|
||||
switch (request) {
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
checked_resize(vo);
|
||||
return VO_TRUE;
|
||||
|
@ -639,10 +639,7 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
{
|
||||
struct priv *p = vo->priv;
|
||||
switch (request) {
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
{
|
||||
case VOCTRL_SET_PANSCAN: {
|
||||
resize(p);
|
||||
return VO_TRUE;
|
||||
}
|
||||
|
@ -420,8 +420,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
{
|
||||
struct priv *p = vo->priv;
|
||||
switch (request) {
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
if (vo->config_ok)
|
||||
resize(vo);
|
||||
|
@ -870,8 +870,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
{
|
||||
struct xvctx *ctx = vo->priv;
|
||||
switch (request) {
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
resize(vo);
|
||||
return VO_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user