[vlc-devel] [PATCH 1/6] access: rar: fail gracefully when psz_url==NULL
Hannes Domani
ssbssa at yahoo.de
Thu Aug 27 16:18:21 CEST 2015
---
modules/access/rar/stream.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/access/rar/stream.c b/modules/access/rar/stream.c
index 0935a97..399634e 100644
--- a/modules/access/rar/stream.c
+++ b/modules/access/rar/stream.c
@@ -61,6 +61,9 @@ int RarStreamOpen(vlc_object_t *object)
{
stream_t *s = (stream_t*)object;
+ if( s->psz_url == NULL )
+ return VLC_EGENERIC;
+
if (RarProbe(s->p_source))
return VLC_EGENERIC;
--
2.5.0
More information about the vlc-devel
mailing list