diff options
author | wm4 <wm4@nowhere> | 2014-11-02 20:26:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-02 20:53:56 +0100 |
commit | 4e2574f025b9f143140008cbed48f6ee9705f813 (patch) | |
tree | 0d3f18fa705a31cb278819324cb4e54533a704a6 /player/client.c | |
parent | 61b06f3756596d0e858db25f5293920eff29333c (diff) | |
download | mpv-4e2574f025b9f143140008cbed48f6ee9705f813.tar.bz2 mpv-4e2574f025b9f143140008cbed48f6ee9705f813.tar.xz |
command: make window-scale property observable
Add a generic mechanism to the VO to relay "extra" events from VO to
player. Use it to notify the core of window resizes, which in turn will
be used to mark all affected properties ("window-scale" in this case) as
changed.
(I refrained from hacking this as internal command into input_ctx, or to
poll the state change, etc. - but in the end, maybe it would be best to
actually pass the client API context directly to the places where events
can happen.)
Diffstat (limited to 'player/client.c')
-rw-r--r-- | player/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/client.c b/player/client.c index 8e2bc4d1b7..6a8204615f 100644 --- a/player/client.c +++ b/player/client.c @@ -620,7 +620,7 @@ int mpv_request_event(mpv_handle *ctx, mpv_event_id event, int enable) { if (!mpv_event_name(event) || enable < 0 || enable > 1) return MPV_ERROR_INVALID_PARAMETER; - assert(event < INTERNAL_EVENT_BASE); // excluded above; they have no name + assert(event < (int)INTERNAL_EVENT_BASE); // excluded above; they have no name pthread_mutex_lock(&ctx->lock); uint64_t bit = 1ULL << event; ctx->event_mask = enable ? ctx->event_mask | bit : ctx->event_mask & ~bit; |