vlc | branch: master | Michael Tänzer <[email protected]> | Sun Jan 31 00:29:25 2016 +0100| [0e1ae34c549f6cd564457d0510eb33cff642adf6] | committer: Jean-Baptiste Kempf
demux: ogg: Fix creating index entries before the first existing entry Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e1ae34c549f6cd564457d0510eb33cff642adf6 --- modules/demux/oggseek.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/demux/oggseek.c b/modules/demux/oggseek.c index e7f3db1..ce9d884 100644 --- a/modules/demux/oggseek.c +++ b/modules/demux/oggseek.c @@ -100,12 +100,11 @@ const demux_index_entry_t *OggSeek_IndexAdd ( logical_stream_t *p_stream, int64_t i_pagepos ) { demux_index_entry_t *idx; - demux_index_entry_t *oidx; demux_index_entry_t *last_idx = NULL; if ( p_stream == NULL ) return NULL; - oidx = idx = p_stream->idx; + idx = p_stream->idx; if ( i_timestamp < 1 || i_pagepos < 1 ) return NULL; @@ -137,8 +136,8 @@ const demux_index_entry_t *OggSeek_IndexAdd ( logical_stream_t *p_stream, } else { - idx->p_next = oidx; - oidx = idx; + idx->p_next = p_stream->idx; + p_stream->idx = idx; } if ( idx->p_next != NULL ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
