[vlc-devel] [PATCH 5/7] medialib: Don't start the medialibrary when fetching from it

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Dec 12 15:10:54 CET 2019


We only need the database to be available, which doesn't require calling
start()
---
 modules/misc/medialibrary/medialib.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/misc/medialibrary/medialib.cpp b/modules/misc/medialibrary/medialib.cpp
index c56a2c8b99..e71b843570 100644
--- a/modules/misc/medialibrary/medialib.cpp
+++ b/modules/misc/medialibrary/medialib.cpp
@@ -556,7 +556,7 @@ int MediaLibrary::Control( int query, va_list args )
 
 int MediaLibrary::List( int listQuery, const vlc_ml_query_params_t* params, va_list args )
 {
-    if ( Start() == false )
+    if ( Init() == false )
         return VLC_EGENERIC;
 
     medialibrary::QueryParameters p{};
@@ -849,7 +849,7 @@ int MediaLibrary::List( int listQuery, const vlc_ml_query_params_t* params, va_l
 
 void* MediaLibrary::Get( int query, va_list args )
 {
-    if ( Start() == false )
+    if ( Init() == false )
         return nullptr;
 
     switch ( query )
-- 
2.20.1



More information about the vlc-devel mailing list