[vlc-commits] demux: ogg: update seekpoints info on new seekpoint (fix #9333)

Francois Cartegnie git at videolan.org
Sat Sep 7 12:58:02 CEST 2013


vlc/vlc-2.1 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Sep  6 22:02:12 2013 +0200| [bd2adda2f83863c88ab31ae2fbd90a609d96ef50] | committer: Jean-Baptiste Kempf

demux: ogg: update seekpoints info on new seekpoint (fix #9333)

(cherry picked from commit 12d92b9605a8366fb460af0bdc31f4957b78c3dc)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/ogg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 7d9aa35..c07394f 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -573,6 +573,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             int64_t i_block = p_sys->pp_seekpoints[i_seekpoint]->i_time_offset * p_sys->i_bitrate / INT64_C(8000000);
             if( stream_Seek( p_demux->s, i_block ) )
                 return VLC_EGENERIC;
+            p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT;
+            p_demux->info.i_seekpoint = i_seekpoint;
             return VLC_SUCCESS;
         }
 



More information about the vlc-commits mailing list