diff options
author | wm4 <wm4@nowhere> | 2017-12-02 04:33:43 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-12-02 04:53:55 +0100 |
commit | 292724538cfbe2a6c713420f8b5be0abf75ad46c (patch) | |
tree | e1bb9a2a16e347f0de3075792d18492b3dd4852c /video/vdpau.c | |
parent | 23a9efd124042e7c97f8317bcd8ae5903d039ef7 (diff) | |
download | mpv-292724538cfbe2a6c713420f8b5be0abf75ad46c.tar.bz2 mpv-292724538cfbe2a6c713420f8b5be0abf75ad46c.tar.xz |
video: remove some more hwdec legacy stuff
Finally get rid of all the HWDEC_* things, and instead rely on the
libavutil equivalents. vdpau still uses a shitty hack, but fuck the
vdpau code.
Remove all the now unneeded remains. The vdpau preemption thing was not
unused anymore; if someone cares this could probably be restored.
Diffstat (limited to 'video/vdpau.c')
-rw-r--r-- | video/vdpau.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/video/vdpau.c b/video/vdpau.c index d751849ec3..7d0ff145b0 100644 --- a/video/vdpau.c +++ b/video/vdpau.c @@ -330,13 +330,6 @@ struct mp_image *mp_vdpau_get_video_surface(struct mp_vdpau_ctx *ctx, return mp_vdpau_get_surface(ctx, chroma, 0, false, w, h); } -static void recheck_preemption(struct mp_hwdec_ctx *hwctx) -{ - struct mp_vdpau_ctx *ctx = hwctx->ctx; - - mp_vdpau_handle_preemption(ctx, NULL); -} - static void free_device_ref(struct AVHWDeviceContext *hwctx) { struct mp_vdpau_ctx *ctx = hwctx->user_opaque; @@ -392,9 +385,6 @@ struct mp_vdpau_ctx *mp_vdpau_create_device_x11(struct mp_log *log, Display *x11 .preemption_counter = 1, .av_device_ref = avref, .hwctx = { - .type = HWDEC_VDPAU, - .ctx = ctx, - .restore_device = recheck_preemption, .av_device_ref = avref, }, }; |