[vlc-commits] ogg: fix SEGV when there is no titles
Thomas Guillem
git at videolan.org
Mon Jan 29 13:14:06 CET 2018
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Sun Jan 28 16:07:46 2018 +0100| [5dfa0e298d93857087ceb8d46a611b2f60fa811e] | committer: Thomas Guillem
ogg: fix SEGV when there is no titles
(cherry picked from commit e4fe06d3bf7d2d53467fadfc035e5f0d0bd374e8)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5dfa0e298d93857087ceb8d46a611b2f60fa811e
---
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 087cdd048c..2e114dc394 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