[vlc-commits] input: decoder: designated init for decoder_owner_callbacks

Filip Roséen git at videolan.org
Thu Jul 26 08:42:53 CEST 2018


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu Jul 26 02:42:37 2018 +0200| [2c0d90c71816129c1e1c4dcda8f443182f7d998a] | committer: Thomas Guillem

input: decoder: designated init for decoder_owner_callbacks

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 src/input/decoder.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 5e4e895c79..ab2908122b 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1683,30 +1683,30 @@ static void *DecoderThread( void *p_data )
 static const struct decoder_owner_callbacks dec_video_cbs =
 {
     .video = {
-        vout_update_format,
-        vout_new_buffer,
-        DecoderQueueVideo,
-        DecoderQueueCc,
-        DecoderGetDisplayDate,
-        DecoderGetDisplayRate
+        .format_update = vout_update_format,
+        .buffer_new = vout_new_buffer,
+        .queue = DecoderQueueVideo,
+        .queue_cc = DecoderQueueCc,
+        .get_display_date = DecoderGetDisplayDate,
+        .get_display_rate = DecoderGetDisplayRate,
     },
-    DecoderGetInputAttachments,
+    .get_attachments = DecoderGetInputAttachments,
 };
 static const struct decoder_owner_callbacks dec_audio_cbs =
 {
     .audio = {
-        aout_update_format,
-        DecoderQueueAudio,
+        .format_update = aout_update_format,
+        .queue = DecoderQueueAudio,
     },
-    DecoderGetInputAttachments,
+    .get_attachments = DecoderGetInputAttachments,
 };
 static const struct decoder_owner_callbacks dec_spu_cbs =
 {
     .spu = {
-        spu_new_buffer,
-        DecoderQueueSpu
+        .buffer_new = spu_new_buffer,
+        .queue = DecoderQueueSpu,
     },
-    DecoderGetInputAttachments,
+    .get_attachments = DecoderGetInputAttachments,
 };
 
 /**



More information about the vlc-commits mailing list