[vlc-commits] [Git][videolan/vlc][master] 3 commits: test: transcode: fix filter callback signatures
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Fri Aug 11 15:19:09 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
474da8a9 by Steve Lhomme at 2023-08-11T15:00:54+00:00
test: transcode: fix filter callback signatures
- - - - -
9745105c by Steve Lhomme at 2023-08-11T15:00:54+00:00
test: video_output: fix filter callback signatures
- - - - -
5eeab1b1 by Steve Lhomme at 2023-08-11T15:00:54+00:00
test: image: fix filter callback signatures
- - - - -
3 changed files:
- test/modules/stream_out/transcode.c
- test/src/misc/image.c
- test/src/video_output/video_output.c
Changes:
=====================================
test/modules/stream_out/transcode.c
=====================================
@@ -125,10 +125,8 @@ static int OpenDecoder(vlc_object_t *obj)
return VLC_SUCCESS;
}
-static int OpenFilter(vlc_object_t *obj)
+static int OpenFilter(filter_t *filter)
{
- filter_t *filter = (filter_t *)obj;
-
static const struct vlc_filter_operations ops = {
.filter_video = NULL,
.close = NULL,
@@ -145,11 +143,9 @@ static picture_t *ConverterFilter(filter_t *filter, picture_t *input)
return input;
}
-static int OpenConverter(vlc_object_t *obj)
+static int OpenConverter(filter_t *filter)
{
- filter_t *filter = (filter_t *)obj;
-
- msg_Dbg(obj, "converter chroma %4.4s -> %4.4s size %ux%u -> %ux%u",
+ msg_Dbg(filter, "converter chroma %4.4s -> %4.4s size %ux%u -> %ux%u",
(const char *)&filter->fmt_in.i_codec,
(const char *)&filter->fmt_out.i_codec,
filter->fmt_in.video.i_width, filter->fmt_in.video.i_height,
=====================================
test/src/misc/image.c
=====================================
@@ -113,10 +113,8 @@ static picture_t *ConvertVideo(filter_t *filter, picture_t *pic)
return picture_NewFromFormat(&filter->fmt_out.video);
}
-static int OpenConverter(vlc_object_t *obj)
+static int OpenConverter(filter_t *filter)
{
- filter_t *filter = (filter_t*)obj;
-
static const struct vlc_filter_operations ops =
{
.filter_video = ConvertVideo,
=====================================
test/src/video_output/video_output.c
=====================================
@@ -115,10 +115,8 @@ static int OpenDecoder(vlc_object_t *obj)
return VLC_SUCCESS;
}
-static int OpenFilter(vlc_object_t *obj)
+static int OpenFilter(filter_t *filter)
{
- filter_t *filter = (filter_t *)obj;
-
static const struct vlc_filter_operations ops = {
.filter_video = NULL,
.close = NULL,
@@ -135,11 +133,9 @@ static picture_t *ConverterFilter(filter_t *filter, picture_t *input)
return input;
}
-static int OpenConverter(vlc_object_t *obj)
+static int OpenConverter(filter_t *filter)
{
- filter_t *filter = (filter_t *)obj;
-
- msg_Dbg(obj, "converter chroma %4.4s -> %4.4s size %ux%u -> %ux%u",
+ msg_Dbg(filter, "converter chroma %4.4s -> %4.4s size %ux%u -> %ux%u",
(const char *)&filter->fmt_in.i_codec,
(const char *)&filter->fmt_out.i_codec,
filter->fmt_in.video.i_width, filter->fmt_in.video.i_height,
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/fc94ef917109752b0b1f5a47d2b408367f354f2c...5eeab1b19eaf9eea0eeebc31720f43886f3f9426
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/fc94ef917109752b0b1f5a47d2b408367f354f2c...5eeab1b19eaf9eea0eeebc31720f43886f3f9426
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