[vlc-commits] medialib: Don't start the medialibrary when fetching from it
Hugo Beauzée-Luyssen
git at videolan.org
Mon Dec 16 11:53:37 CET 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Nov 15 16:56:43 2019 +0100| [7133a51c3571b8a02a1d7cb1555b9d6bd3b65d7f] | committer: Hugo Beauzée-Luyssen
medialib: Don't start the medialibrary when fetching from it
We only need the database to be available, which doesn't require calling
start()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7133a51c3571b8a02a1d7cb1555b9d6bd3b65d7f
---
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 )
More information about the vlc-commits
mailing list