]> git.sesse.net Git - vlc/blobdiff - modules/media_library/sql_add.c
file: detect long remote paths correctly on Win32
[vlc] / modules / media_library / sql_add.c
index d2651f236ff50d22941998539fb4b853fe51c18d..4f58a9554e2d29d39840b138d9509c7ae3f37a59 100644 (file)
@@ -258,7 +258,7 @@ int AddPeople( media_library_t *p_ml, const char *psz_name,
 int AddInputItem( media_library_t *p_ml, input_item_t *p_input )
 {
     assert( p_ml );
-    if( !p_input )
+    if( !p_input || !p_input->psz_uri )
         return VLC_EGENERIC;
     int i_ret = VLC_SUCCESS;