[vlc-devel] [PATCH 32/39] qt: correctly convert role to sort criteria in mlvideomodel

Prince Gupta guptaprince8832 at gmail.com
Thu Jan 7 11:50:28 UTC 2021


---
 modules/gui/qt/medialibrary/mlvideomodel.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/qt/medialibrary/mlvideomodel.cpp b/modules/gui/qt/medialibrary/mlvideomodel.cpp
index f2dcfad4b3..b9bbde25d0 100644
--- a/modules/gui/qt/medialibrary/mlvideomodel.cpp
+++ b/modules/gui/qt/medialibrary/mlvideomodel.cpp
@@ -99,6 +99,7 @@ vlc_ml_sorting_criteria_t MLVideoModel::roleToCriteria(int role) const
         case VIDEO_TITLE:
             return VLC_ML_SORTING_ALPHA;
         case VIDEO_DURATION:
+        case VIDEO_DURATION_SHORT:
             return VLC_ML_SORTING_DURATION;
         case VIDEO_PLAYCOUNT:
             return VLC_ML_SORTING_PLAYCOUNT;
-- 
2.25.1



More information about the vlc-devel mailing list