Commit a3bd2361 authored by Thomas Guillem's avatar Thomas Guillem Committed by Steve Lhomme
Browse files

libvlc: media: cancel request on destroy

If the media is released, the thumbnail request must be interrupted
(since the thumbnail cb will access the media event manager).
parent 3b26eefc
......@@ -1084,6 +1084,7 @@ void libvlc_media_thumbnail_request_cancel( libvlc_media_thumbnail_request_t *re
// Destroy a thumbnail request
void libvlc_media_thumbnail_request_destroy( libvlc_media_thumbnail_request_t *req )
{
libvlc_media_thumbnail_request_cancel( req );
libvlc_media_release( req->md );
libvlc_release(req->instance);
free( req );
......
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