Discussion:
[libdvdcss-devel] [PATCH] Don't close any handle if callback functions are used
Hannes Domani
2016-02-25 20:03:29 UTC
Permalink
---
src/device.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/src/device.c b/src/device.c
index af735e0..baa4bc5 100644
--- 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 );
--
2.7.0
Hannes Domani
2016-03-14 15:51:35 UTC
Permalink
Post by Hannes Domani
---
src/device.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/device.c b/src/device.c
index af735e0..baa4bc5 100644
--- 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 );
--
2.7.0
Ping.
Hannes Domani
2016-08-02 17:07:05 UTC
Permalink
Post by Hannes Domani
---
src/device.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/device.c b/src/device.c
index af735e0..baa4bc5 100644
--- 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 );
--
2.7.0
Ping.
Ping.
Jean-Baptiste Kempf
2016-08-02 17:09:13 UTC
Permalink
Post by Hannes Domani
---
src/device.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/device.c b/src/device.c
index af735e0..baa4bc5 100644
--- 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 );
--
2.7.0
Ping.
Ping.
DOne.
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
Loading...