Discussion:
[libdvdcss-devel] [Git][videolan/libdvdcss][master] Don't close any handle if callback functions are used
Jean-Baptiste Kempf
2016-08-02 17:09:26 UTC
Permalink
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 <***@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
Loading...