[libdvdcss-devel] [Git][videolan/libdvdcss][master] Don't close any handle if callback functions are used
Jean-Baptiste Kempf
gitlab at videolan.org
Tue Aug 2 19:09:26 CEST 2016
Jean-Baptiste Kempf pushed to branch master at videolan / libdvdcss
Commits:
5bec036c by Hannes Domani at 2016-08-02T19:08:47+02:00
Don't close any handle if callback functions are used
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
- - - - -
1 changed file:
- src/device.c
Changes:
=====================================
src/device.c
=====================================
--- a/src/device.c
+++ b/src/device.c
@@ -406,6 +406,11 @@ int dvdcss_open_device ( dvdcss_t dvdcss )
int dvdcss_close_device ( dvdcss_t dvdcss )
{
+ if( dvdcss->p_stream )
+ {
+ return 0;
+ }
+
#if defined( _WIN32 )
/* Free readv temporary buffer */
free( dvdcss->p_readv_buffer );
View it on GitLab: https://code.videolan.org/videolan/libdvdcss/commit/5bec036cfee3950d002f3c46c17bbd4e375d5bd6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/libdvdcss-devel/attachments/20160802/5e2ed3de/attachment.html>
More information about the libdvdcss-devel
mailing list