[vlc-commits] medialibrary: Fix missing parameters
Hugo Beauzée-Luyssen
git at videolan.org
Mon Dec 16 11:53:32 CET 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 12 14:44:12 2019 +0100| [3ef723036f105105fdaae90bc35d939a44b5ac6f] | committer: Hugo Beauzée-Luyssen
medialibrary: Fix missing parameters
Which was not failing because the pointer was implicitely converted to
boolean, and the default value was used for the pointer parameter.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3ef723036f105105fdaae90bc35d939a44b5ac6f
---
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 cb5d4007f9..d494da82d4 100644
--- a/modules/misc/medialibrary/medialib.cpp
+++ b/modules/misc/medialibrary/medialib.cpp
@@ -708,7 +708,7 @@ int MediaLibrary::List( int listQuery, const vlc_ml_query_params_t* params, va_l
medialibrary::Query<medialibrary::IArtist> query;
bool includeAll = va_arg( args, int ) != 0;
if ( psz_pattern != nullptr )
- query = m_ml->searchArtists( psz_pattern, paramsPtr );
+ query = m_ml->searchArtists( psz_pattern, includeAll, paramsPtr );
else
query = m_ml->artists( includeAll, paramsPtr );
if ( query == nullptr )
@@ -723,7 +723,7 @@ int MediaLibrary::List( int listQuery, const vlc_ml_query_params_t* params, va_l
medialibrary::Query<medialibrary::IArtist> query;
bool includeAll = va_arg( args, int ) != 0;
if ( psz_pattern != nullptr )
- query = m_ml->searchArtists( psz_pattern, paramsPtr );
+ query = m_ml->searchArtists( psz_pattern, includeAll, paramsPtr );
else
query = m_ml->artists( includeAll, paramsPtr );
if ( query == nullptr )
More information about the vlc-commits
mailing list