Commit 603afb47 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Tristan Matthews
Browse files

medialibrary: init ML before adding media

When calling VLC_ML_NEW_EXTERNAL_MEDIA or VLC_ML_NEW_STREAM, the
medialibrary must be initialized because the priority context is
acquired, just list for the VLC_ML_GENERATE_THUMBNAIL request.

Ensure the medialibrary is initialized at the same location as other
queries like this.
parent a41743de
......@@ -517,6 +517,8 @@ int MediaLibrary::Control( int query, va_list args )
case VLC_ML_UNBAN_FOLDER:
case VLC_ML_RELOAD_FOLDER:
case VLC_ML_RESUME_BACKGROUND:
case VLC_ML_NEW_EXTERNAL_MEDIA:
case VLC_ML_NEW_STREAM:
case VLC_ML_MEDIA_GENERATE_THUMBNAIL:
{
/* These operations require the media library to be started
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment