[vlc-commits] ML: Discard items with no URI in Append Queue.
Konstantin Pavlov
git at videolan.org
Mon Mar 28 14:52:24 CEST 2011
vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Mar 25 14:42:22 2011 +0300| [9b078b589f658bb1636b63103116b7b50245dcb0] | committer: Konstantin Pavlov
ML: Discard items with no URI in Append Queue.
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b078b589f658bb1636b63103116b7b50245dcb0
---
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;
More information about the vlc-commits
mailing list