[vlc-commits] sd: mediadirs: make item options unique

Francois Cartegnie git at videolan.org
Wed Sep 6 13:10:13 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Sep  5 22:49:15 2017 +0200| [b84ee0b782ef645a1936a15c507f9f706405b3a0] | committer: Francois Cartegnie

sd: mediadirs: make item options unique

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b84ee0b782ef645a1936a15c507f9f706405b3a0
---

 modules/services_discovery/mediadirs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/services_discovery/mediadirs.c b/modules/services_discovery/mediadirs.c
index 69ded2d63f..3b681c9661 100644
--- a/modules/services_discovery/mediadirs.c
+++ b/modules/services_discovery/mediadirs.c
@@ -199,10 +199,10 @@ static void *Run( void *data )
         input_item_t* p_root = input_item_New( psz_uri, NULL );
         if( p_sys->i_type == Picture )
             input_item_AddOption( p_root, "ignore-filetypes=ini,db,lnk,txt",
-                                  VLC_INPUT_OPTION_TRUSTED );
+                                  VLC_INPUT_OPTION_TRUSTED|VLC_INPUT_OPTION_UNIQUE );
 
         input_item_AddOption( p_root, "recursive=collapse",
-                              VLC_INPUT_OPTION_TRUSTED );
+                              VLC_INPUT_OPTION_TRUSTED|VLC_INPUT_OPTION_UNIQUE );
 
 
         vlc_event_manager_t *p_em = &p_root->event_manager;



More information about the vlc-commits mailing list