[vlc-devel] [PATCH] medialib: fix genre->tracks call parameters

Alexandre Janniaux ajanni at videolabs.io
Tue Oct 15 14:17:28 CEST 2019


Hi,

Thank you for review,
ping for merging the patch.

Regards,
--
Alexandre Janniaux
Videolabs
On Wed, Oct 09, 2019 at 06:54:01PM +0200, Alexandre Janniaux wrote:
> QueryParameters were silently casted into bool.
> ---
>  modules/misc/medialibrary/medialib.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules/misc/medialibrary/medialib.cpp b/modules/misc/medialibrary/medialib.cpp
> index cdbf5e39a7a..b7e0166ab14 100644
> --- a/modules/misc/medialibrary/medialib.cpp
> +++ b/modules/misc/medialibrary/medialib.cpp
> @@ -1427,7 +1427,7 @@ int MediaLibrary::listGenre( int listQuery, const medialibrary::QueryParameters*
>              if ( pattern != nullptr )
>                  query = genre->searchTracks( pattern, paramsPtr );
>              else
> -                query = genre->tracks( paramsPtr );
> +                query = genre->tracks( false, paramsPtr );
>              if ( query == nullptr )
>                  return VLC_EGENERIC;
>              switch ( listQuery )
> --
> 2.23.0


More information about the vlc-devel mailing list