You should now use a preparser to generate thumbnails.
One single preparser is able to:
- Parse
- Fetch meta
- Generate thumbnails
Using 3 different queues. It is also possible to create a preparser for
only one type of processing.
In order to behave like the vlc_preparser.h API.
vlc_thumbnailer_SetTimeout Will be used by libvlc_media_t, temporarily,
waiting for the future libvlc_parser_t API.
This id can be used to cancel a task.
vlc_thumbnailer_DestroyRequest() had been renamed to
vlc_thumbnailer_Cancel(). The new function is optional and can be used
to cancel a task. The user doesn't have the responsibility to free the
request anymore.
And put the vlc_object_t argument in 1st, to behave like most API.
cf. 9c57c2ccb991047d8132deaa1875a2501fcaac20
This will allow adding extra params easily, like:
- bool parse_subitems (to remove input_item_t.i_preparse_depth)
- bool interact (to remove input_item_t.b_preparse_interact)
Allow medialibrary queries to process and list public media.
Public media are a new addition of the medialibrary 0.13 version. With
this, the users will have the opportunity to allow a subset of the
medialibrary to be exposed on network interfaces (notably the upnp
server and the HTTP remote control).
Community discussions around the subject can be found here:
https://code.videolan.org/videolan/vlc/-/merge_requests/269#note_274345
The condition was flawed. `strdup_helper` allocation success made the
condition pass to the `else` statement, thus erasing the previously
allocated value and causing a leak.
This patch reworks the condition to properly succeed when the string
duplication is done.
MediaLibrary 0.13 allows to list and search on playlist that contains at
least one element of a certain media type.
This is mostly useful to consider playlists with at least one audio file
to be treated as music playlists.
To reflect the latest changes in medialibrary 0.13. There is a listing
function for both audio and video now. This avoids bad combinations of
mediatype and history type.
../../modules/misc/medialibrary/MetadataExtractor.cpp:139:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
139 | for ( auto i = 0; i < inputItem->es_vec.size; ++i )
| ~~^~~~~~~~~~~~~~~~~~~~~~~~
These needs to be more explicit to match the actual medialibrary
behavior. Currently, filtering asking for video or audio playlists will
return playlists that contain exclusively the designated entity type.
The next medialibrary release introduce new filtering types allowing
finer filtering.
Move the media_provider.get_next callback to
vlc_player_cbs.request_next_media.
This callback does not need a special handling since it doesn't
wait for a result anymore.
Thumbnail requests must always be released since ca3b131594.
A failing thumbnail also need to have its request destroyed.
Moving the release call before the null thumbnail condition allow for a
systematic release of the request. Removing the release call from the
`stop()` method is also necessary now, as it would otherwise cause a double
free. The condition variable triggering the request deletion is signaled in
`stop()`.