mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 06:46:55 +00:00
core: remove mp_fifo leftovers
This commit is contained in:
parent
1789449a0a
commit
d084f72a6c
@ -1,40 +0,0 @@
|
||||
/*
|
||||
* This file is part of MPlayer.
|
||||
*
|
||||
* MPlayer is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* MPlayer is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#ifndef MPLAYER_MP_FIFO_H
|
||||
#define MPLAYER_MP_FIFO_H
|
||||
|
||||
#include "core/bstr.h"
|
||||
#include "core/input/input.h"
|
||||
|
||||
struct mp_fifo;
|
||||
struct input_ctx;
|
||||
|
||||
// New code should use the wrapped functions directly.
|
||||
|
||||
static inline void mplayer_put_key(struct mp_fifo *fifo, int code)
|
||||
{
|
||||
mp_input_put_key((struct input_ctx *)fifo, code);
|
||||
}
|
||||
|
||||
static inline void mplayer_put_key_utf8(struct mp_fifo *fifo, int mods, struct bstr t)
|
||||
{
|
||||
mp_input_put_key_utf8((struct input_ctx *)fifo, mods, t);
|
||||
}
|
||||
|
||||
#endif /* MPLAYER_MP_FIFO_H */
|
@ -31,7 +31,6 @@
|
||||
#include "vo.h"
|
||||
#include "aspect.h"
|
||||
|
||||
#include "core/mp_fifo.h"
|
||||
#include "talloc.h"
|
||||
|
||||
#include "core/mp_msg.h"
|
||||
|
@ -292,7 +292,6 @@ struct vo *init_best_video_out(struct mp_vo_opts *opts,
|
||||
struct vo *vo = talloc_ptrtype(NULL, vo);
|
||||
struct vo initial_values = {
|
||||
.opts = opts,
|
||||
.key_fifo = (struct mp_fifo *)input_ctx,
|
||||
.encode_lavc_ctx = encode_lavc_ctx,
|
||||
.input_ctx = input_ctx,
|
||||
.event_fd = -1,
|
||||
|
@ -262,7 +262,6 @@ struct vo {
|
||||
struct vo_w32_state *w32;
|
||||
struct vo_cocoa_state *cocoa;
|
||||
struct vo_wayland_state *wayland;
|
||||
struct mp_fifo *key_fifo;
|
||||
struct encode_lavc_context *encode_lavc_ctx;
|
||||
struct input_ctx *input_ctx;
|
||||
int event_fd; // check_events() should be called when this has input
|
||||
|
Loading…
Reference in New Issue
Block a user