[vlc-commits] media library: Fix invalid query handling

Hugo Beauzée-Luyssen git at videolan.org
Wed Aug 1 13:14:43 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Aug  1 11:43:32 2018 +0200| [048ca0c1d1ce7ed0ef9981c4c57a84cf870e2f0b] | committer: Hugo Beauzée-Luyssen

media library: Fix invalid query handling

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=048ca0c1d1ce7ed0ef9981c4c57a84cf870e2f0b
---

 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 afbe30d5c2..1bc2fa65e7 100644
--- a/modules/misc/medialibrary/medialib.cpp
+++ b/modules/misc/medialibrary/medialib.cpp
@@ -877,7 +877,7 @@ int MediaLibrary::filterListChildrenQuery( int query, int parentType )
             {
                 case VLC_ML_PARENT_ALBUM:
                     return VLC_ML_LIST_ALBUM_ARTISTS;
-                case VLC_ML_PARENT_ARTIST:
+                case VLC_ML_PARENT_GENRE:
                     return VLC_ML_LIST_GENRE_ARTISTS;
                 default:
                     vlc_assert_unreachable();
@@ -887,7 +887,7 @@ int MediaLibrary::filterListChildrenQuery( int query, int parentType )
             {
                 case VLC_ML_PARENT_ALBUM:
                     return VLC_ML_COUNT_ALBUM_ARTISTS;
-                case VLC_ML_PARENT_ARTIST:
+                case VLC_ML_PARENT_GENRE:
                     return VLC_ML_COUNT_GENRE_ARTISTS;
                 default:
                     vlc_assert_unreachable();



More information about the vlc-commits mailing list