[vlc-commits] [Git][videolan/vlc][master] 8 commits: libtool: medialibrary: restrict version checks to the supported minor version
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Oct 27 11:20:15 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
23744edb by Alaric Senat at 2026-10-27T10:10:39+00:00
libtool: medialibrary: restrict version checks to the supported minor version
Accept 0.13.x releases and reject later minor versions, this is a 0.x
library, which breaks API even on minor bumps.
- - - - -
69d5e95a by Alaric Senat at 2026-10-27T10:10:39+00:00
meson: medialibrary: restrict version checks to the supported minor version
Accept 0.13.x releases and reject later minor versions, this is a 0.x
library, which breaks API even on minor bumps.
- - - - -
d7dc4518 by Alaric Senat at 2026-10-27T10:10:39+00:00
contribs: medialibrary: restrict version checks to the supported minor version
Accept 0.13.x releases and reject later minor versions, this is a 0.x
library, which breaks API even on minor bumps.
- - - - -
228d5e5a by Alaric Senat at 2026-10-27T10:10:39+00:00
medialibrary: update to 0.14.1
Medialibrary 0.14.0 new features:
* Allow clearing audio and video playback history separately
* Add audio sorting by album release year and track number
* Extract media rating metadata through libVLC and allow sorting
media by rating
* Allow setting and removing album thumbnails
* Allow removing artist thumbnails and taking ownership of media
and artist thumbnails
Medialibrary 0.14.0 fixes:
* Fix album duration and track counters when removing tracks
* Use file display names for media titles on Apple platforms
* Notify applications when media thumbnails are removed
* Report thumbnail relocation failures and reject ownership of
remote genre thumbnails
* Report missing SQLite FTS3 support earlier
Medialibrary 0.14.1 fixes:
* Fix truncation of 64-bit integers stored in SQLite
* Fix detection of previously truncated file sizes during discovery
* Fix media grouping and show episode detection after a refresh
* Avoid starting the parser when the database is unusable
- - - - -
f0383e05 by Alaric Senat at 2026-10-27T10:10:39+00:00
medialibrary: import ratings from media metadata
- - - - -
0264ecad by Alaric Senat at 2026-10-27T10:10:39+00:00
medialibrary: expose rating track sorting
- - - - -
0aa0628b by Alaric Senat at 2026-10-27T10:10:39+00:00
medialibrary: expose album release year track sorting
- - - - -
23ddf5ac by Alaric Senat at 2026-10-27T10:10:39+00:00
medialibrary: expose clearing history by media type
Allow clearing audio or video history and playback progress while
preserving stream history.
- - - - -
7 changed files:
- configure.ac
- contrib/src/medialibrary/SHA512SUMS
- contrib/src/medialibrary/rules.mak
- include/vlc_media_library.h
- modules/misc/medialibrary/MetadataExtractor.cpp
- modules/misc/medialibrary/medialibrary.cpp
- modules/misc/meson.build
Changes:
=====================================
configure.ac
=====================================
@@ -5107,7 +5107,7 @@ dnl Libnotify notification plugin
dnl
PKG_ENABLE_MODULES_VLC([NOTIFY], [], [libnotify], [libnotify notification], [auto])
-PKG_ENABLE_MODULES_VLC([MEDIALIBRARY], [medialibrary], [medialibrary >= 0.13.0], (medialibrary support), [auto])
+PKG_ENABLE_MODULES_VLC([MEDIALIBRARY], [medialibrary], [medialibrary >= 0.14.0 medialibrary < 0.15.0], (medialibrary support), [auto])
dnl
dnl Endianness check
=====================================
contrib/src/medialibrary/SHA512SUMS
=====================================
@@ -1 +1 @@
-ec04cd28a19e547debf1a911fbcd33345a53a3f963e83d6f878c9836ebfefd4045c42a670a2c076ba3767bf91884f542e48dab6a254fc29285041fa9be35fe73 medialibrary-0.13.2.tar.bz2
+e7a67a7a2a7158e5b75517a82b8540efedb73e5d5f27b660a50d14e82e5d40ec64d9dbc90cf11dcaa7879d2c92a24b1e2007e3a8f0a9fe2f508d6826384c96cb medialibrary-0.14.1.tar.bz2
=====================================
contrib/src/medialibrary/rules.mak
=====================================
@@ -1,10 +1,10 @@
-MEDIALIBRARY_VERSION := 0.13.2
+MEDIALIBRARY_VERSION := 0.14.1
MEDIALIBRARY_URL := $(VIDEOLAN_GIT)/videolan/medialibrary/-/archive/$(MEDIALIBRARY_VERSION)/medialibrary-$(MEDIALIBRARY_VERSION).tar.bz2
ifndef HAVE_WINSTORE
PKGS += medialibrary
endif
-ifeq ($(call need_pkg,"medialibrary >= 0.13.0"),)
+ifeq ($(call need_pkg,"medialibrary >= 0.14.1 medialibrary < 0.15.0"),)
PKGS_FOUND += medialibrary
endif
=====================================
include/vlc_media_library.h
=====================================
@@ -440,6 +440,8 @@ typedef enum vlc_ml_sorting_criteria_t
VLC_ML_SORTING_ALBUM,
VLC_ML_SORTING_FILENAME,
VLC_ML_SORTING_TRACKNUMBER,
+ VLC_ML_SORTING_RATING,
+ VLC_ML_SORTING_TRACKNUMBER_ALBUM_RELEASE_YEAR,
} vlc_ml_sorting_criteria_t;
/**
@@ -662,6 +664,8 @@ enum vlc_ml_control
VLC_ML_ALBUM_SET_FAVORITE, /**< arg1: album id; arg2: bool; can fail */
VLC_ML_GENRE_SET_FAVORITE, /**< arg1: genre id; arg2: bool; can fail */
VLC_ML_PLAYLIST_SET_FAVORITE, /**< arg1: playlist id; arg2: bool; can fail */
+
+ VLC_ML_CLEAR_HISTORY_BY_MEDIA_TYPE, /**< arg1: vlc_ml_media_type_t (audio or video); can fail */
};
/**
@@ -1094,6 +1098,12 @@ static inline int vlc_ml_clear_history( vlc_medialibrary_t* p_ml, vlc_ml_history
return vlc_ml_control( p_ml, VLC_ML_CLEAR_HISTORY, type );
}
+static inline int vlc_ml_clear_history_by_media_type( vlc_medialibrary_t* p_ml,
+ vlc_ml_media_type_t type )
+{
+ return vlc_ml_control( p_ml, VLC_ML_CLEAR_HISTORY_BY_MEDIA_TYPE, (int)type );
+}
+
static inline vlc_ml_media_t* vlc_ml_new_external_media( vlc_medialibrary_t* p_ml, const char* psz_mrl )
{
vlc_ml_media_t* res;
=====================================
modules/misc/medialibrary/MetadataExtractor.cpp
=====================================
@@ -121,6 +121,7 @@ void MetadataExtractor::populateItem( medialibrary::parser::IItem& item, input_i
{ metadata_t::Album, vlc_meta_Album },
{ metadata_t::Genre, vlc_meta_Genre },
{ metadata_t::Date, vlc_meta_Date },
+ { metadata_t::Rating, vlc_meta_Rating },
{ metadata_t::AlbumArtist, vlc_meta_AlbumArtist },
{ metadata_t::Artist, vlc_meta_Artist },
{ metadata_t::TrackNumber, vlc_meta_TrackNumber },
=====================================
modules/misc/medialibrary/medialibrary.cpp
=====================================
@@ -609,6 +609,22 @@ int MediaLibrary::Control( int query, va_list args )
m_ml->clearHistory( type );
break;
}
+ case VLC_ML_CLEAR_HISTORY_BY_MEDIA_TYPE:
+ {
+ medialibrary::IMedia::Type type;
+ switch ( va_arg( args, int ) )
+ {
+ case VLC_ML_MEDIA_TYPE_AUDIO:
+ type = medialibrary::IMedia::Type::Audio;
+ break;
+ case VLC_ML_MEDIA_TYPE_VIDEO:
+ type = medialibrary::IMedia::Type::Video;
+ break;
+ default:
+ return VLC_EGENERIC;
+ }
+ return m_ml->clearHistoryByMediaType( type ) ? VLC_SUCCESS : VLC_EGENERIC;
+ }
case VLC_ML_NEW_EXTERNAL_MEDIA:
{
auto priorityAccess = m_ml->acquirePriorityAccess();
@@ -1753,6 +1769,10 @@ medialibrary::SortingCriteria MediaLibrary::sortingCriteria(int sort)
return medialibrary::SortingCriteria::Filename;
case VLC_ML_SORTING_TRACKNUMBER:
return medialibrary::SortingCriteria::TrackNumber;
+ case VLC_ML_SORTING_RATING:
+ return medialibrary::SortingCriteria::Rating;
+ case VLC_ML_SORTING_TRACKNUMBER_ALBUM_RELEASE_YEAR:
+ return medialibrary::SortingCriteria::TrackNumberAlbumReleaseYear;
default:
vlc_assert_unreachable();
}
@@ -1911,7 +1931,7 @@ int MediaLibrary::controlMedia( int query, va_list args )
{
auto mrl = va_arg( args, const char* );
auto sizeType = va_arg( args, int );
- m->setThumbnail( mrl, static_cast<medialibrary::ThumbnailSizeType>( sizeType ) );
+ m->setThumbnail( mrl, static_cast<medialibrary::ThumbnailSizeType>( sizeType ), false );
return VLC_SUCCESS;
}
case VLC_ML_MEDIA_ADD_EXTERNAL_MRL:
=====================================
modules/misc/meson.build
=====================================
@@ -49,7 +49,7 @@ if libxml2_dep.found()
endif
# medialibrary module
-medialibrary_dep = dependency('medialibrary', version: '>= 0.13', required: get_option('medialibrary'), method: 'pkg-config')
+medialibrary_dep = dependency('medialibrary', version: ['>= 0.14.0', '< 0.15.0'], required: get_option('medialibrary'), method: 'pkg-config')
if medialibrary_dep.found()
vlc_modules += {
'name' : 'medialibrary',
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/874d229c1896037992f9d10b06ce6c341f77c0eb...23ddf5ac397e1326f7241ff49d96c160f8d26957
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/874d229c1896037992f9d10b06ce6c341f77c0eb...23ddf5ac397e1326f7241ff49d96c160f8d26957
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list