|
VLC 4.0.0-dev
|
Preparser thumbnailer callbacks. More...
#include <vlc_preparser.h>
Data Fields | |
| void(* | on_ended )(vlc_preparser_req *req, int status, picture_t *thumbnail, void *data) |
| Event received on thumbnailing completion or error. | |
Preparser thumbnailer callbacks.
| void(* vlc_thumbnailer_cbs::on_ended) (vlc_preparser_req *req, int status, picture_t *thumbnail, void *data) |
Event received on thumbnailing completion or error.
This callback will always be called, provided vlc_preparser_GenerateThumbnail() returned a valid request, and provided the request is not cancelled before its completion.
In case of failure, timeout or cancellation, p_thumbnail will be NULL. The picture, if any, is owned by the thumbnailer, and must be acquired by using picture_Hold to use it pass the callback's scope.
| req | request handle returned by vlc_preparser_GenerateThumbnail() |
| status | VLC_SUCCESS in case of success, VLC_ETIMEOUT in case of timeout, -EINTR if cancelled, an error otherwise |
| thumbnail | The generated thumbnail, or NULL in case of failure or timeout |
| data | opaque pointer passed by vlc_preparser_GenerateThumbnail() |
Referenced by ThumbnailerRun(), and vlc_preparser_Cancel().