[vlc-commits] ogg: fix SEGV when there is no titles

Thomas Guillem git at videolan.org
Sun Jan 28 16:08:52 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sun Jan 28 16:07:46 2018 +0100| [e4fe06d3bf7d2d53467fadfc035e5f0d0bd374e8] | committer: Thomas Guillem

ogg: fix SEGV when there is no titles

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

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

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index e9f05099d1..15501eb327 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -920,8 +920,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 }
                 *pi_title_offset = 0;
                 *pi_seekpoint_offset = 0;
+                return VLC_SUCCESS;
             }
-            return VLC_SUCCESS;
+            return VLC_EGENERIC;
         }
         case DEMUX_SET_TITLE:
         {



More information about the vlc-commits mailing list