[vlc-commits] input: es_out_timeshift: use union for block offset

Francois Cartegnie git at videolan.org
Mon May 18 21:06:52 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 22 17:56:50 2020 +0200| [4ca9fab36255787f9d798abad7d51d47ac2518f4] | committer: Francois Cartegnie

input: es_out_timeshift: use union for block offset

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

 src/input/es_out_timeshift.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c
index 272f541057..8ffa1ea400 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -92,8 +92,10 @@ typedef struct attribute_packed
 {
     ts_cmd_header_t header;
     es_out_id_t *p_es;
-    block_t *p_block;
-    int     i_offset;  /* We do not use file > INT_MAX */
+    union{
+        block_t *p_block;
+        int     i_offset;  /* We do not use file > INT_MAX */
+    };
 } ts_cmd_send_t;
 
 typedef struct attribute_packed



More information about the vlc-commits mailing list