[vlc-devel] [PATCH 3/8] upnp: items are already sorted

Thomas Guillem thomas at gllm.fr
Thu May 7 12:10:27 CEST 2015


Indeed, when you browse an album folder, items are already sorted by track
number.
---
 modules/services_discovery/upnp.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index b1c73c5..cb7001a 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -847,6 +847,7 @@ static int Open( vlc_object_t *p_this )
     }
 
     p_access->pf_readdir = ReadDirectory;
+    p_access->info.b_dir_sorted = true;
 
     return VLC_SUCCESS;
 }
-- 
2.1.4




More information about the vlc-devel mailing list