[vlc-commits] [Git][videolan/vlc][3.0.x] 2 commits: access_output: rist: remove useless inits after free

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Aug 26 03:22:42 UTC 2026



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
62903a9a by François Cartegnie at 2026-08-26T03:14:47+00:00
access_output: rist: remove useless inits after free

- - - - -
91f0f510 by François Cartegnie at 2026-08-26T03:14:47+00:00
access: rist: use VLC_TICK_FROM_MS

- - - - -


2 changed files:

- modules/access/rist.c
- modules/access_output/rist.c


Changes:

=====================================
modules/access/rist.c
=====================================
@@ -118,8 +118,7 @@ static int Control(stream_t *p_access, int i_query, va_list args)
             break;
 
         case STREAM_GET_PTS_DELAY:
-            *va_arg( args, int64_t * ) = INT64_C(1000)
-                   * var_InheritInteger(p_access, "network-caching");
+            *va_arg( args, int64_t * ) = VLC_TICK_FROM_MS(var_InheritInteger(p_access, "network-caching"));
             break;
 
         default:


=====================================
modules/access_output/rist.c
=====================================
@@ -100,7 +100,7 @@ static int cb_stats(void *arg, const struct rist_stats *stats_container)
 static uint64_t i_dts_to_ntp64( uint64_t i_dts )
 {
     lldiv_t d = lldiv (i_dts, CLOCK_FREQ);
-    struct timespec ts = { d.quot, INT64_C(1000) * d.rem };
+    struct timespec ts = { d.quot, VLC_TICK_FROM_MS(d.rem) };
     // Convert nanoseconds to 32-bits fraction (232 picosecond units)
     uint64_t t = (uint64_t)(ts.tv_nsec) << 32;
     t /= 1000000000;
@@ -178,7 +178,6 @@ static void Close( vlc_object_t * p_this )
     sout_access_out_sys_t *p_sys = p_access->p_sys;
 
     rist_destroy(p_sys->sender_ctx);
-    p_sys->sender_ctx = NULL;
 }
 
 static int Open( vlc_object_t *p_this )
@@ -261,7 +260,6 @@ static int Open( vlc_object_t *p_this )
 
 failed:
     rist_destroy(p_sys->sender_ctx);
-    p_sys->sender_ctx = NULL;
     return VLC_EGENERIC;
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b533d25285bf63a354a3cc7a242ebf12f7d1350b...91f0f51089c9460e9a1eb9f4f440a33185f84950

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b533d25285bf63a354a3cc7a242ebf12f7d1350b...91f0f51089c9460e9a1eb9f4f440a33185f84950
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list