diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2016-10-28 14:06:30 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-10-29 06:58:07 +0700 |
commit | a8a8b8e198d9f8fd94c7483af1b6a96b351dccf4 (patch) | |
tree | 5f3409a5b907911797c57315072a69f7ed9753ef /libraries/libdvdcss/patches/0005-Don-t-close-any-handle-if-callback-functions-are-use.patch | |
parent | 3fb19477bc39a259f6236b8defae9515fc98a578 (diff) | |
download | slackbuilds-a8a8b8e198d9f8fd94c7483af1b6a96b351dccf4.tar.gz slackbuilds-a8a8b8e198d9f8fd94c7483af1b6a96b351dccf4.tar.xz |
libraries/libdvdcss: Included some patches from upstream git repo
Maybe these fix the bug reported here:
https://mailman.videolan.org/pipermail/libdvdcss-devel/2016-April/001641.html
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r-- | libraries/libdvdcss/patches/0005-Don-t-close-any-handle-if-callback-functions-are-use.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libraries/libdvdcss/patches/0005-Don-t-close-any-handle-if-callback-functions-are-use.patch b/libraries/libdvdcss/patches/0005-Don-t-close-any-handle-if-callback-functions-are-use.patch new file mode 100644 index 0000000000..ab67c0e0ba --- /dev/null +++ b/libraries/libdvdcss/patches/0005-Don-t-close-any-handle-if-callback-functions-are-use.patch @@ -0,0 +1,29 @@ +From 5bec036cfee3950d002f3c46c17bbd4e375d5bd6 Mon Sep 17 00:00:00 2001 +From: Hannes Domani <ssbssa@yahoo.de> +Date: Thu, 25 Feb 2016 21:03:29 +0100 +Subject: [PATCH 5/5] Don't close any handle if callback functions are used + +Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> +--- + 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.10.0 + |