[vlc-devel] [vlc-commits] Update to medialibrary API changes

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Sep 26 17:35:00 CEST 2019


On Tue, Sep 24, 2019, at 2:34 PM, Hugo Beauzée-Luyssen wrote:
> vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Jul 
>  8 15:10:17 2019 +0200| [caf1a4af37bf3a9d2e8998db26bd4fd8b0ce70aa] | 
> committer: Hugo Beauzée-Luyssen
> 
> Update to medialibrary API changes
> 
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=caf1a4af37bf3a9d2e8998db26bd4fd8b0ce70aa
> ---
> 
>  contrib/src/medialibrary/rules.mak                 |  2 +-
>  include/vlc_media_library.h                        |  4 +
>  .../components/mediacenter/mlalbumtrackmodel.cpp   |  6 +-
>  .../components/mediacenter/mlrecentsvideomodel.cpp |  3 -
>  .../gui/qt/components/mediacenter/mlvideomodel.cpp |  3 -
>  modules/misc/medialibrary/fs/directory.cpp         | 17 +++++
>  modules/misc/medialibrary/fs/directory.h           |  1 +
>  modules/misc/medialibrary/fs/fs.cpp                |  8 ++
>  modules/misc/medialibrary/fs/fs.h                  |  3 +
>  modules/misc/medialibrary/medialib.cpp             | 89 ++++++++++++++++------
>  modules/misc/medialibrary/medialibrary.h           | 11 +--
>  11 files changed, 107 insertions(+), 40 deletions(-)
> 
> diff --git a/contrib/src/medialibrary/rules.mak 
> b/contrib/src/medialibrary/rules.mak
> index 711797fbb9..dcf198e18c 100644
> --- a/contrib/src/medialibrary/rules.mak
> +++ b/contrib/src/medialibrary/rules.mak
> @@ -1,4 +1,4 @@
> -MEDIALIBRARY_HASH := 00d30ec824749b73bb7c5be6e22fe441785ba971
> +MEDIALIBRARY_HASH := 18148bcaf26964d22ebdda26a475ed1ed533046b
>  MEDIALIBRARY_VERSION := git-$(MEDIALIBRARY_HASH)
>  MEDIALIBRARY_GITURL := 
> https://code.videolan.org/videolan/medialibrary.git
>  

Hi,

I messed something up when bumping the version the previous time, or rather by updating the medialibrary database model without bumping its version, after forgetting that VLC desktop was using it. 
This is causing the medialibrary to try to migrate a table that doesn't exist yet.
If you encounter a crash during startup that mentions a problem with the Bookmark table, then you will have to drop the existing database.

Sorry about that.

Regards,

-- 
  Hugo Beauzée-Luyssen
  hugo at beauzee.fr


More information about the vlc-devel mailing list