From: RĂ©mi Denis-Courmont Date: Tue, 2 Mar 2010 19:24:29 +0000 (+0200) Subject: Input item URI cannot be NULL X-Git-Tag: 1.1.0-pre1~569 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8bf4be30381fa0474cf8de4f3655233abef8bad5;p=vlc Input item URI cannot be NULL --- diff --git a/src/input/item.c b/src/input/item.c index 416ec1970a..f10067a7a2 100644 --- a/src/input/item.c +++ b/src/input/item.c @@ -357,8 +357,10 @@ char *input_item_GetURI( input_item_t *p_i ) vlc_mutex_unlock( &p_i->lock ); return psz_s; } + void input_item_SetURI( input_item_t *p_i, const char *psz_uri ) { + assert( psz_uri ); #ifndef NDEBUG if( !strstr( psz_uri, "://" ) || strchr( psz_uri, ' ' ) || strchr( psz_uri, '"' ) )