Add a pair of patches to resindvd plugin to set DEFAULT_DEVICE to

/dev/rcd0c instead of /dev/dvd.. no better workaround atm, but at
least gstreamer-enabled apps have more chances to play dvds.
(btw, you have to be in operator group to access the device)
Note that gstreamer-ugly also provides some more or less working
plugins for dvd playing, but resindvd is supposed to be the way to go.

ok ajacoutot@ with some grumblings
This commit is contained in:
landry 2009-12-02 22:20:11 +00:00
parent 814901e016
commit 79bf393e39
3 changed files with 26 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.22 2009/11/29 09:16:51 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.23 2009/12/02 22:20:11 landry Exp $
COMMENT-main = bad elements for GStreamer
COMMENT-neon = neon element for GStreamer (bad)
@ -8,7 +8,7 @@ COMMENT-mjpeg = gstmplex and gstmpeg2enc elements for GStreamer (bad)
V = 0.10.17
DISTNAME = gst-plugins-bad-$V
PKGNAME-main = gstreamer-plugins-bad-${V}
PKGNAME-main = gstreamer-plugins-bad-${V}p0
PKGNAME-neon = gstreamer-neon-$V
PKGNAME-real = gstreamer-real-$V
PKGNAME-mjpeg = gstreamer-mjpeg-$V

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ext_resindvd_resindvdbin_c,v 1.1 2009/12/02 22:20:11 landry Exp $
--- ext/resindvd/resindvdbin.c.orig Wed Dec 2 20:53:26 2009
+++ ext/resindvd/resindvdbin.c Wed Dec 2 20:53:46 2009
@@ -44,7 +44,7 @@ GST_DEBUG_CATEGORY_EXTERN (resindvd_debug);
#define DVDBIN_PREROLL_LOCK(d) g_mutex_lock((d)->preroll_lock)
#define DVDBIN_PREROLL_UNLOCK(d) g_mutex_unlock((d)->preroll_lock)
-#define DEFAULT_DEVICE "/dev/dvd"
+#define DEFAULT_DEVICE "/dev/rcd0c"
enum
{
/* FILL ME */

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ext_resindvd_resindvdsrc_c,v 1.1 2009/12/02 22:20:11 landry Exp $
--- ext/resindvd/resindvdsrc.c.orig Wed Dec 2 20:53:10 2009
+++ ext/resindvd/resindvdsrc.c Wed Dec 2 20:53:22 2009
@@ -33,7 +33,7 @@
GST_DEBUG_CATEGORY_STATIC (rsndvdsrc_debug);
#define GST_CAT_DEFAULT rsndvdsrc_debug
-#define DEFAULT_DEVICE "/dev/dvd"
+#define DEFAULT_DEVICE "/dev/rcd0c"
#define DEFAULT_FASTSTART TRUE
#define GST_FLOW_WOULD_BLOCK GST_FLOW_CUSTOM_SUCCESS