X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Finput%2Fitem.c;h=cdc60edef1710ff6e4142fca86322031339a3120;hb=a3947b183302a6a1a5fab53b10e176a417db363c;hp=29446ae9c40d84ce06d2d436e6c5e326319981e9;hpb=7eccf3a2cf7bdf158f58b8f4ef006ad604738c0b;p=vlc diff --git a/src/input/item.c b/src/input/item.c index 29446ae9c4..cdc60edef1 100644 --- a/src/input/item.c +++ b/src/input/item.c @@ -362,12 +362,13 @@ char *input_item_GetURI( input_item_t *p_i ) } void input_item_SetURI( input_item_t *p_i, const char *psz_uri ) { - vlc_mutex_lock( &p_i->lock ); #ifndef NDEBUG - if( !strstr( psz_uri, "://" ) || strstr( psz_uri, " " ) || strstr( psz_uri, "\"" ) ) - fprintf( stderr, "input_item_SetURI() was likely called with a path. FIXME\n" ); + if( !strstr( psz_uri, "://" ) + || strchr( psz_uri, ' ' ) || strchr( psz_uri, '"' ) ) + fprintf( stderr, "Warning: %s(\"%s\"): file path instead of URL.\n", + __func__, psz_uri ); #endif - + vlc_mutex_lock( &p_i->lock ); free( p_i->psz_uri ); p_i->psz_uri = strdup( psz_uri );