From cf9b415173b57befb410ecbe92c298cfe36f0451 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 27 Apr 2016 13:37:55 +0200 Subject: [PATCH] hwdec: remove numbers from enum They don't actually mean anything. Just HWDEC_NONE should remain 0, because it's the default init value for structs etc. --- video/hwdec.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/video/hwdec.h b/video/hwdec.h index 898b035361..4deba76211 100644 --- a/video/hwdec.h +++ b/video/hwdec.h @@ -7,17 +7,17 @@ struct mp_image_pool; // keep in sync with --hwdec option (see mp_hwdec_names) enum hwdec_type { - HWDEC_AUTO = -1, HWDEC_NONE = 0, - HWDEC_VDPAU = 1, - HWDEC_VIDEOTOOLBOX = 3, - HWDEC_VAAPI = 4, - HWDEC_VAAPI_COPY = 5, - HWDEC_DXVA2 = 6, - HWDEC_DXVA2_COPY = 7, - HWDEC_D3D11VA_COPY = 8, - HWDEC_RPI = 9, - HWDEC_MEDIACODEC = 10, + HWDEC_AUTO, + HWDEC_VDPAU, + HWDEC_VIDEOTOOLBOX, + HWDEC_VAAPI, + HWDEC_VAAPI_COPY, + HWDEC_DXVA2, + HWDEC_DXVA2_COPY, + HWDEC_D3D11VA_COPY, + HWDEC_RPI, + HWDEC_MEDIACODEC, }; // hwdec_type names (options.c)