summaryrefslogtreecommitdiff
path: root/multimedia/xine-lib/patches/patch-fb
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2008-05-26 12:35:09 +0000
committerdrochner <drochner@pkgsrc.org>2008-05-26 12:35:09 +0000
commit22e291cc8822e63de131c5eb2e8d5d69065fda91 (patch)
treeae27d5cc1fb2d4219328f0f941bb5e48973eb1bc /multimedia/xine-lib/patches/patch-fb
parenteff6f440a26d971923066296f2e30baeb4e48114 (diff)
downloadpkgsrc-22e291cc8822e63de131c5eb2e8d5d69065fda91.tar.gz
normalize time argument to pthread_cond_timedwait(), otherwise NetBSD's
libpthread complains (happened if one jumped forth and back in a DVD) bump PKGREVISION
Diffstat (limited to 'multimedia/xine-lib/patches/patch-fb')
-rw-r--r--multimedia/xine-lib/patches/patch-fb15
1 files changed, 15 insertions, 0 deletions
diff --git a/multimedia/xine-lib/patches/patch-fb b/multimedia/xine-lib/patches/patch-fb
new file mode 100644
index 00000000000..79c294610ac
--- /dev/null
+++ b/multimedia/xine-lib/patches/patch-fb
@@ -0,0 +1,15 @@
+$NetBSD: patch-fb,v 1.1 2008/05/26 12:35:10 drochner Exp $
+
+--- ./src/xine-engine/demux.c.orig 2008-05-22 17:14:15.000000000 +0200
++++ ./src/xine-engine/demux.c
+@@ -291,6 +291,10 @@ static void *demux_loop (void *stream_ge
+ gettimeofday(&tv, NULL);
+ ts.tv_sec = tv.tv_sec;
+ ts.tv_nsec = (tv.tv_usec + 100000) * 1000;
++ if (ts.tv_nsec >= 1000000000) {
++ ts.tv_nsec -= 1000000000;
++ ts.tv_sec += 1;
++ }
+
+ pthread_cond_timedwait (&stream->demux_resume, &stream->demux_lock, &ts);
+ }