mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
vo_sdl, vo_xv: remove redundant/useless VOCTRL_PAUSE usage
This commit is contained in:
parent
bf9b9c3bd0
commit
6b3d510165
@ -177,7 +177,6 @@ struct priv {
|
||||
struct mp_rect src_rect;
|
||||
struct mp_rect dst_rect;
|
||||
struct mp_osd_res osd_res;
|
||||
int int_pause;
|
||||
struct formatmap_entry osd_format;
|
||||
struct osd_bitmap_surface {
|
||||
int bitmap_id;
|
||||
@ -980,15 +979,10 @@ static int get_eq(struct vo *vo, const char *name, int *value)
|
||||
|
||||
static int control(struct vo *vo, uint32_t request, void *data)
|
||||
{
|
||||
struct priv *vc = vo->priv;
|
||||
switch (request) {
|
||||
case VOCTRL_FULLSCREEN:
|
||||
set_fullscreen(vo, !vo_fs);
|
||||
return 1;
|
||||
case VOCTRL_PAUSE:
|
||||
return vc->int_pause = 1;
|
||||
case VOCTRL_RESUME:
|
||||
return vc->int_pause = 0;
|
||||
case VOCTRL_REDRAW_FRAME:
|
||||
draw_image(vo, NULL);
|
||||
return 1;
|
||||
|
@ -93,7 +93,6 @@ struct xvctx {
|
||||
uint32_t image_height;
|
||||
uint32_t image_format;
|
||||
struct mp_csp_details cached_csp;
|
||||
int is_paused;
|
||||
struct mp_rect src_rect;
|
||||
struct mp_rect dst_rect;
|
||||
uint32_t max_width, max_height; // zero means: not set
|
||||
@ -936,10 +935,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
{
|
||||
struct xvctx *ctx = vo->priv;
|
||||
switch (request) {
|
||||
case VOCTRL_PAUSE:
|
||||
return (ctx->is_paused = 1);
|
||||
case VOCTRL_RESUME:
|
||||
return (ctx->is_paused = 0);
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_FULLSCREEN:
|
||||
|
Loading…
Reference in New Issue
Block a user