[vlc-commits] decoder: initialize fields explicitly
Steve Lhomme
git at videolan.org
Wed Jan 16 08:28:37 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 15 11:35:50 2019 +0100| [cc2a8cdf76c6a3ba8f7eeffe9c02ba8b000b0926] | committer: Steve Lhomme
decoder: initialize fields explicitly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc2a8cdf76c6a3ba8f7eeffe9c02ba8b000b0926
---
test/src/input/decoder.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/test/src/input/decoder.c b/test/src/input/decoder.c
index ea3d857af5..695aa348c8 100644
--- a/test/src/input/decoder.c
+++ b/test/src/input/decoder.c
@@ -167,24 +167,22 @@ decoder_t *test_decoder_create(vlc_object_t *parent, const es_format_t *fmt)
static const struct decoder_owner_callbacks dec_video_cbs =
{
.video = {
- NULL,
- video_new_buffer_decoder,
- queue_video,
- queue_cc,
+ .buffer_new = video_new_buffer_decoder,
+ .queue = queue_video,
+ .queue_cc = queue_cc,
},
};
static const struct decoder_owner_callbacks dec_audio_cbs =
{
.audio = {
- NULL,
- queue_audio,
+ .queue = queue_audio,
},
};
static const struct decoder_owner_callbacks dec_spu_cbs =
{
.spu = {
- spu_new_buffer_decoder,
- queue_sub,
+ .buffer_new = spu_new_buffer_decoder,
+ .queue = queue_sub,
},
};
More information about the vlc-commits
mailing list