[vlc-commits] thumbnailer: Invoke callbacks in case of early failure
Hugo Beauzée-Luyssen
git at videolan.org
Wed Jan 23 18:09:09 CET 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Nov 30 13:23:57 2018 +0100| [6f1ad34c7c8100b17c7e8a2f325ee99c29662802] | committer: Hugo Beauzée-Luyssen
thumbnailer: Invoke callbacks in case of early failure
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f1ad34c7c8100b17c7e8a2f325ee99c29662802
---
src/input/thumbnailer.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/input/thumbnailer.c b/src/input/thumbnailer.c
index bd10032d53..b1bbf2ae36 100644
--- a/src/input/thumbnailer.c
+++ b/src/input/thumbnailer.c
@@ -130,7 +130,10 @@ static int thumbnailer_request_Start( void* owner, void* entity, void** out )
on_thumbnailer_input_event, request,
request->params.input_item );
if ( unlikely( input == NULL ) )
+ {
+ request->params.cb( request->params.user_data, NULL );
return VLC_EGENERIC;
+ }
if ( request->params.type == VLC_THUMBNAILER_SEEK_TIME )
{
input_SetTime( input, request->params.time,
@@ -143,7 +146,10 @@ static int thumbnailer_request_Start( void* owner, void* entity, void** out )
request->params.fast_seek );
}
if ( input_Start( input ) != VLC_SUCCESS )
+ {
+ request->params.cb( request->params.user_data, NULL );
return VLC_EGENERIC;
+ }
*out = request;
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list