[vlc-commits] [Git][videolan/vlc][master] test: use filter module callback helpers
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Tue Aug 15 09:45:52 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
c4bac881 by Steve Lhomme at 2023-08-15T09:13:29+00:00
test: use filter module callback helpers
So the callback signature is matching what is expected.
- - - - -
5 changed files:
- test/modules/stream_out/transcode.c
- test/src/input/decoder/input_decoder.c
- test/src/misc/image.c
- test/src/video_output/opengl.c
- test/src/video_output/video_output.c
Changes:
=====================================
test/modules/stream_out/transcode.c
=====================================
@@ -373,16 +373,13 @@ vlc_module_begin()
add_shortcut("output_checker")
add_submodule()
- set_callback(OpenDecoderDevice)
- set_capability("decoder device", 0)
+ set_callback_dec_device(OpenDecoderDevice, 0)
add_submodule()
- set_callback(OpenFilter)
- set_capability("video filter", 0)
+ set_callback_video_filter(OpenFilter)
add_submodule()
- set_callback(OpenConverter)
- set_capability("video converter", INT_MAX)
+ set_callback_video_converter(OpenConverter, INT_MAX)
add_submodule()
set_callback(OpenEncoder)
=====================================
test/src/input/decoder/input_decoder.c
=====================================
@@ -305,8 +305,7 @@ vlc_module_begin()
add_submodule()
- set_callback(OpenDecoderDevice)
- set_capability("decoder device", 0)
+ set_callback_dec_device(OpenDecoderDevice, 0)
add_submodule()
set_callbacks(OpenDecoder, CloseDecoder)
=====================================
test/src/misc/image.c
=====================================
@@ -129,8 +129,7 @@ vlc_module_begin()
set_capability("image encoder", INT_MAX)
add_submodule()
- set_callback(OpenConverter)
- set_capability("video converter", INT_MAX)
+ set_callback_video_converter(OpenConverter, INT_MAX)
add_submodule()
set_callback(OpenIntf)
=====================================
test/src/video_output/opengl.c
=====================================
@@ -177,8 +177,7 @@ OpenOpenGLESOffscreen(vlc_gl_t *gl, unsigned width, unsigned height,
* - opengl offscreen for generating video context and using decoder device
**/
vlc_module_begin()
- set_callback(OpenDecoderDevice)
- set_capability("decoder device", 1000)
+ set_callback_dec_device(OpenDecoderDevice, 1000)
add_shortcut("test_offscreen")
add_submodule()
=====================================
test/src/video_output/video_output.c
=====================================
@@ -254,24 +254,20 @@ vlc_module_begin()
set_capability("video decoder", INT_MAX)
add_submodule()
- set_callback(OpenDecoderDevice)
- set_capability("decoder device", 0)
+ set_callback_dec_device(OpenDecoderDevice, 0)
add_submodule()
- set_callback(OpenFilter)
- set_capability("video filter", 0)
+ set_callback_video_filter(OpenFilter)
add_submodule()
- set_callback(OpenConverter)
- set_capability("video converter", INT_MAX)
+ set_callback_video_converter(OpenConverter, INT_MAX)
add_submodule()
set_callback(OpenWindow)
set_capability("vout window", INT_MAX)
add_submodule()
- set_callback(OpenDisplay)
- set_capability("vout display", 0)
+ set_callback_display(OpenDisplay, 0)
/* Interface module to avoid casting libvlc_instance_t to object */
add_submodule()
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c4bac881be8f7501bf446b93bfcb6d0c7ed97094
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c4bac881be8f7501bf446b93bfcb6d0c7ed97094
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list