[vlc-commits] [Git][videolan/vlc][master] 2 commits: sout: trace: trace flush events

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Sep 15 05:40:38 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d7f47909 by Soham Gupta at 2023-09-15T05:21:05+00:00
sout: trace: trace flush events

- - - - -
06fc45ca by Soham Gupta at 2023-09-15T05:21:05+00:00
tracer: json: close dangling file pointer

- - - - -


2 changed files:

- modules/logger/json.c
- modules/stream_out/trace.c


Changes:

=====================================
modules/logger/json.c
=====================================
@@ -200,7 +200,7 @@ static void TraceJson(void *opaque, vlc_tick_t ts, va_list entries)
 static void Close(void *opaque)
 {
     vlc_tracer_sys_t *sys = opaque;
-
+    fclose(sys->stream);
     free(sys);
 }
 


=====================================
modules/stream_out/trace.c
=====================================
@@ -106,6 +106,11 @@ static int Control(sout_stream_t *stream, int query, va_list args)
 static void Flush(sout_stream_t *stream, void *id)
 {
     sout_stream_id_sys_t *sys_id = id;
+    struct vlc_tracer *tracer = vlc_object_get_tracer(VLC_OBJECT(stream));
+    if (tracer != NULL)
+    {
+        vlc_tracer_TraceEvent(tracer, stream->p_sys, sys_id->es_id, "FLUSH");
+    }
     sout_StreamFlush(stream->p_next, sys_id->next_id);
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/49eb51af0d3bedb5c45cb9dce1eaee211b892934...06fc45ca02e30d59dfcfa4d3e409c41cb926f067

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/49eb51af0d3bedb5c45cb9dce1eaee211b892934...06fc45ca02e30d59dfcfa4d3e409c41cb926f067
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