[vlc-commits] medialibrary: fix artist tracks beeing interpreted as album tracks

Pierre Lamot git at videolan.org
Thu Jun 13 13:10:31 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Jun 13 12:54:14 2019 +0200| [c93ffb88daae307dec8d0c2c69984e58387ba337] | committer: Thomas Guillem

medialibrary: fix artist tracks beeing interpreted as album tracks

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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 fc636ee95b..a66c0e1f09 100644
--- a/modules/misc/medialibrary/medialib.cpp
+++ b/modules/misc/medialibrary/medialib.cpp
@@ -996,7 +996,7 @@ int MediaLibrary::filterListChildrenQuery( int query, int parentType )
                 case VLC_ML_PARENT_ALBUM:
                     return VLC_ML_LIST_ALBUM_TRACKS;
                 case VLC_ML_PARENT_ARTIST:
-                    return VLC_ML_LIST_ALBUM_TRACKS;
+                    return VLC_ML_LIST_ARTIST_TRACKS;
                 case VLC_ML_PARENT_SHOW:
                     return VLC_ML_LIST_SHOW_EPISODES;
                 case VLC_ML_PARENT_GENRE:
@@ -1012,7 +1012,7 @@ int MediaLibrary::filterListChildrenQuery( int query, int parentType )
                 case VLC_ML_PARENT_ALBUM:
                     return VLC_ML_COUNT_ALBUM_TRACKS;
                 case VLC_ML_PARENT_ARTIST:
-                    return VLC_ML_COUNT_ALBUM_TRACKS;
+                    return VLC_ML_COUNT_ARTIST_TRACKS;
                 case VLC_ML_PARENT_SHOW:
                     return VLC_ML_COUNT_SHOW_EPISODES;
                 case VLC_ML_PARENT_GENRE:



More information about the vlc-commits mailing list