[vlc-commits] opengl/vdpau: rename DecoderContextXXX to DecoderDeviceXXX

Steve Lhomme git at videolan.org
Tue Oct 22 09:02:05 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Oct 21 08:16:53 2019 +0200| [b75c28e7b4757ed8b7a9b8c645e74da55f4abacb] | committer: Steve Lhomme

opengl/vdpau: rename DecoderContextXXX to DecoderDeviceXXX

The callbacks are related to the decoder device, not the video context.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b75c28e7b4757ed8b7a9b8c645e74da55f4abacb
---

 modules/video_output/opengl/converter_vdpau.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/video_output/opengl/converter_vdpau.c b/modules/video_output/opengl/converter_vdpau.c
index 06596a490b..5220699128 100644
--- a/modules/video_output/opengl/converter_vdpau.c
+++ b/modules/video_output/opengl/converter_vdpau.c
@@ -194,17 +194,17 @@ Open(vlc_object_t *obj)
 }
 
 static void
-DecoderContextClose(vlc_decoder_device *device)
+DecoderDeviceClose(vlc_decoder_device *device)
 {
     vdp_release_x11(device->opaque);
 }
 
 static const struct vlc_decoder_device_operations dev_ops = {
-    .close = DecoderContextClose,
+    .close = DecoderDeviceClose,
 };
 
 static int
-DecoderContextOpen(vlc_decoder_device *device, vout_window_t *window)
+DecoderDeviceOpen(vlc_decoder_device *device, vout_window_t *window)
 {
     if (!window || !vlc_xlib_init(VLC_OBJECT(window)))
         return VLC_EGENERIC;
@@ -229,5 +229,5 @@ vlc_module_begin ()
     set_subcategory(SUBCAT_VIDEO_VOUT)
     add_shortcut("vdpau")
     add_submodule()
-        set_callback_dec_device(DecoderContextOpen, 3)
+        set_callback_dec_device(DecoderDeviceOpen, 3)
 vlc_module_end ()



More information about the vlc-commits mailing list