[vlc-devel] [PATCH] ML: Discard items with no URI in Append Queue.

Konstantin Pavlov thresh at videolan.org
Fri Mar 25 15:55:43 CET 2011


This fixes the crash when Media Library tries to add "My Videos" / "My
Pictures" / etc. playlist entries to a ML when browsing them through "My
Computer" service discovery.
---
 modules/media_library/sql_add.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/media_library/sql_add.c b/modules/media_library/sql_add.c
index d2651f2..4f58a95 100644
--- a/modules/media_library/sql_add.c
+++ b/modules/media_library/sql_add.c
@@ -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;
 
-- 
1.7.4.1




More information about the vlc-devel mailing list