[vlc-devel] [PATCH 2/3] vaapi: use set_callbacks_dec_device()

Steve Lhomme robux4 at ycbcr.xyz
Mon Jul 15 13:55:57 CEST 2019


---
 modules/hw/vaapi/decoder_device.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/hw/vaapi/decoder_device.c b/modules/hw/vaapi/decoder_device.c
index 99fd832849..07118ff8a1 100644
--- a/modules/hw/vaapi/decoder_device.c
+++ b/modules/hw/vaapi/decoder_device.c
@@ -259,8 +259,7 @@ Open(vlc_decoder_device *device, vout_window_t *window)
 
 vlc_module_begin ()
     set_description("VA-API decoder device for " DESCRIPTION_SUFFIX)
-    set_capability("decoder device", PRIORITY)
-    set_callbacks(Open, Close)
+    set_callbacks_dec_device(Open, Close, PRIORITY)
     set_category(CAT_VIDEO)
     set_subcategory(SUBCAT_VIDEO_VOUT)
     add_shortcut("vaapi", SHORTCUT)
-- 
2.17.1



More information about the vlc-devel mailing list