diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2016-07-01 19:12:34 -0400 |
---|---|---|
committer | Ben Boeckel <mathstuf@gmail.com> | 2016-07-01 19:12:34 -0400 |
commit | 76a73a0a5d91f95fd2fb6303aca5bb6bc2ada127 (patch) | |
tree | ed33f918fd1a9773768908022c9d2505fb96e99c /video/decode/vd_lavc.c | |
parent | b2ce00ed56b52a4ab27dbefe175ae145565e6a06 (diff) | |
download | mpv-76a73a0a5d91f95fd2fb6303aca5bb6bc2ada127.tar.bz2 mpv-76a73a0a5d91f95fd2fb6303aca5bb6bc2ada127.tar.xz |
vd_lavc: hide structs behind platform flags
Otherwise, warnings about them being unused appear.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index fbb04d1abd..be6aceb662 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -129,17 +129,21 @@ extern const struct vd_lavc_hwdec mp_vd_lavc_dxva2_copy; extern const struct vd_lavc_hwdec mp_vd_lavc_d3d11va; extern const struct vd_lavc_hwdec mp_vd_lavc_d3d11va_copy; +#if HAVE_RPI static const struct vd_lavc_hwdec mp_vd_lavc_rpi = { .type = HWDEC_RPI, .lavc_suffix = "_mmal", .image_format = IMGFMT_MMAL, }; +#endif +#if HAVE_ANDROID static const struct vd_lavc_hwdec mp_vd_lavc_mediacodec = { .type = HWDEC_MEDIACODEC, .lavc_suffix = "_mediacodec", .copying = true, }; +#endif static const struct vd_lavc_hwdec *const hwdec_list[] = { #if HAVE_RPI |