[vlc-commits] [Git][videolan/vlc][master] 3 commits: timestamps_filter: add missing vlc_frame.h include

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Aug 5 15:38:09 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
5d6ba324 by Alexandre Janniaux at 2024-08-05T15:07:31+00:00
timestamps_filter: add missing vlc_frame.h include

The header is using vlc_frame_t definition but was never including it.

- - - - -
88db80a5 by Alexandre Janniaux at 2024-08-05T15:07:31+00:00
timestamps_filter: remove excess value in callbacks

...and switch to designated initializer. The value was not removed from
commit 132308a6d356e24e56a0e1e07d2f33d6f5517246.

- - - - -
39308002 by Alexandre Janniaux at 2024-08-05T15:07:31+00:00
timestamps_filter: switch function to static inline

Being static in a header file doesn't indicate to the compiler that the
function might not be used.

- - - - -


1 changed file:

- modules/demux/timestamps_filter.h


Changes:

=====================================
modules/demux/timestamps_filter.h
=====================================
@@ -23,6 +23,7 @@
 #include <vlc_common.h>
 #include <vlc_arrays.h>
 #include <vlc_es_out.h>
+#include <vlc_frame.h>
 
 #include "moving_avg.h"
 
@@ -351,15 +352,14 @@ static void timestamps_filter_es_out_Del(es_out_t *out, es_out_id_t *id)
 
 static const struct es_out_callbacks timestamps_filter_es_out_cbs =
 {
-    timestamps_filter_es_out_Add,
-    timestamps_filter_es_out_Send,
-    timestamps_filter_es_out_Del,
-    timestamps_filter_es_out_Control,
-    timestamps_filter_es_out_Delete,
-    NULL,
+    .add = timestamps_filter_es_out_Add,
+    .send = timestamps_filter_es_out_Send,
+    .del = timestamps_filter_es_out_Del,
+    .control = timestamps_filter_es_out_Control,
+    .destroy = timestamps_filter_es_out_Delete,
 };
 
-static es_out_t * timestamps_filter_es_out_New(es_out_t *orig)
+static inline es_out_t * timestamps_filter_es_out_New(es_out_t *orig)
 {
     struct tf_es_out_s *tf = malloc(sizeof(*tf));
     if(!tf)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/0304f28faf9f2669150683c69118733ada2ddd1c...39308002af144d7358ec24481236910be3c7742f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/0304f28faf9f2669150683c69118733ada2ddd1c...39308002af144d7358ec24481236910be3c7742f
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