summaryrefslogtreecommitdiffstats
path: root/video/hwdec.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-12-02 04:33:43 +0100
committerwm4 <wm4@nowhere>2017-12-02 04:53:55 +0100
commit292724538cfbe2a6c713420f8b5be0abf75ad46c (patch)
treee1bb9a2a16e347f0de3075792d18492b3dd4852c /video/hwdec.c
parent23a9efd124042e7c97f8317bcd8ae5903d039ef7 (diff)
downloadmpv-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/hwdec.c')
-rw-r--r--video/hwdec.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/video/hwdec.c b/video/hwdec.c
index 79714f60e0..b52b082a38 100644
--- a/video/hwdec.c
+++ b/video/hwdec.c
@@ -34,21 +34,6 @@ void hwdec_devices_destroy(struct mp_hwdec_devices *devs)
talloc_free(devs);
}
-struct mp_hwdec_ctx *hwdec_devices_get(struct mp_hwdec_devices *devs,
- enum hwdec_type type)
-{
- struct mp_hwdec_ctx *res = NULL;
- pthread_mutex_lock(&devs->lock);
- for (int n = 0; n < devs->num_hwctxs; n++) {
- if (type && devs->hwctxs[n]->type == type) {
- res = devs->hwctxs[n];
- break;
- }
- }
- pthread_mutex_unlock(&devs->lock);
- return res;
-}
-
struct AVBufferRef *hwdec_devices_get_lavc(struct mp_hwdec_devices *devs,
int av_hwdevice_type)
{
@@ -109,15 +94,6 @@ void hwdec_devices_request_all(struct mp_hwdec_devices *devs)
devs->load_api(devs->load_api_ctx);
}
-void *hwdec_devices_load(struct mp_hwdec_devices *devs, enum hwdec_type type)
-{
- if (!devs)
- return NULL;
- hwdec_devices_request_all(devs);
- struct mp_hwdec_ctx *hwctx = hwdec_devices_get(devs, type);
- return hwctx ? hwctx->ctx : NULL;
-}
-
char *hwdec_devices_get_names(struct mp_hwdec_devices *devs)
{
char *res = NULL;