[vlc-commits] ogg: add DEMUX_GET_(TITLE|SEEKPOINT)

Rémi Denis-Courmont git at videolan.org
Sun Dec 3 13:27:28 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec  3 12:14:15 2017 +0200| [a673d2bdf79c488e7cd5d30e963cc1ac0409fd38] | committer: Rémi Denis-Courmont

ogg: add DEMUX_GET_(TITLE|SEEKPOINT)

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

 modules/demux/ogg.c | 8 +++++++-
 modules/demux/ogg.h | 1 +
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index b9844a2c19..30a74196f0 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -958,12 +958,18 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME,
                                 VLC_TS_0 + i64 );
                 p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT;
-                p_demux->info.i_seekpoint = i_seekpoint;
+                p_sys->cur_seekpoint = i_seekpoint;
                 return VLC_SUCCESS;
             }
             else
                 return VLC_EGENERIC;
         }
+        case DEMUX_GET_TITLE:
+            *va_arg( args, int * ) = 0;
+            return VLC_SUCCESS;
+        case DEMUX_GET_SEEKPOINT:
+            *va_arg( args, int * ) = p_sys->cur_seekpoint;
+            return VLC_SUCCESS;
 
         default:
             return demux_vaControlHelper( p_demux->s, 0, -1, p_sys->i_bitrate,
diff --git a/modules/demux/ogg.h b/modules/demux/ogg.h
index 16ac99793c..c25f8c5252 100644
--- a/modules/demux/ogg.h
+++ b/modules/demux/ogg.h
@@ -211,6 +211,7 @@ struct demux_sys_t
 
     /* */
     vlc_meta_t          *p_meta;
+    int                 cur_seekpoint;
     int                 i_seekpoints;
     seekpoint_t         **pp_seekpoints;
 



More information about the vlc-commits mailing list