[vlc-commits] qt: fix video model counting
Pierre Lamot
git at videolan.org
Fri Jan 10 15:06:12 CET 2020
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Dec 11 11:21:18 2019 +0100| [885c3ddc8691df45d661dfb074f40789ee17c55f] | committer: Jean-Baptiste Kempf
qt: fix video model counting
filter options where not applied
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=885c3ddc8691df45d661dfb074f40789ee17c55f
---
modules/gui/qt/medialibrary/mlvideomodel.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/medialibrary/mlvideomodel.cpp b/modules/gui/qt/medialibrary/mlvideomodel.cpp
index 75950b200b..0114edca78 100644
--- a/modules/gui/qt/medialibrary/mlvideomodel.cpp
+++ b/modules/gui/qt/medialibrary/mlvideomodel.cpp
@@ -123,7 +123,9 @@ std::vector<std::unique_ptr<MLVideo> > MLVideoModel::fetch()
size_t MLVideoModel::countTotalElements() const
{
- vlc_ml_query_params_t params{};
+ vlc_ml_query_params_t params = m_query_param;
+ params.i_offset = 0;
+ params.i_nbResults = 0;
return vlc_ml_count_video_media(m_ml, ¶ms);
}
More information about the vlc-commits
mailing list