[vlc-commits] cdg: prepare for void *p_sys

Rémi Denis-Courmont git at videolan.org
Sun Dec 3 16:57:58 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec  3 17:05:50 2017 +0200| [71bf8aa7ca6ea5837ad1ab50ed2783c679897ba1] | committer: Rémi Denis-Courmont

cdg: prepare for void *p_sys

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

 modules/demux/cdg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/cdg.c b/modules/demux/cdg.c
index c36bac3488..5f958bee68 100644
--- a/modules/demux/cdg.c
+++ b/modules/demux/cdg.c
@@ -166,14 +166,14 @@ static void Close ( vlc_object_t * p_this )
  *****************************************************************************/
 static int Control( demux_t *p_demux, int i_query, va_list args )
 {
+    demux_sys_t *p_sys = p_demux->p_sys;
     uint64_t i_old_offset = vlc_stream_Tell( p_demux->s );
     int i_ret = demux_vaControlHelper( p_demux->s, 0, -1,
                                        8*CDG_FRAME_SIZE*CDG_FRAME_RATE, CDG_FRAME_SIZE,
                                        i_query, args );
     if( !i_ret && ( i_query == DEMUX_SET_POSITION || i_query == DEMUX_SET_TIME ) )
     {
-        date_Set( &p_demux->p_sys->pts,
-                  vlc_stream_Tell( p_demux->s ) / CDG_FRAME_SIZE *
+        date_Set( &p_sys->pts, vlc_stream_Tell( p_demux->s ) / CDG_FRAME_SIZE *
                     INT64_C(1000000) / CDG_FRAME_RATE );
         if ( i_old_offset > vlc_stream_Tell( p_demux->s ) )
             i_ret = vlc_stream_Seek( p_demux->s, 0 );



More information about the vlc-commits mailing list