openbsd-ports/multimedia/regionset/patches/patch-regionset_c
oga 4ef53ca0cd Import regionset into the right place this time.
Original Log message:
    Import regionset. A simple tool for setting the region code on dvd
    drives.
    
    If you have a new dvd drive, sometimes they have no region set at all
    and won't play dvds until one is set. This solves that problem.
    
    ok okan@, looked over by a couple of others.
2008-01-03 19:30:16 +00:00

22 lines
768 B
Plaintext

$OpenBSD: patch-regionset_c,v 1.1.1.1 2008/01/03 19:30:16 oga Exp $
--- regionset.c.orig Thu Jan 3 04:49:14 2008
+++ regionset.c Thu Jan 3 04:50:12 2008
@@ -27,7 +27,7 @@
#include <stdio.h>
#include "dvd_udf.h"
-#define DEFAULTDEVICE "/dev/dvd"
+#define DEFAULTDEVICE "/dev/cd0c"
#define VERSION "0.1"
int main (int argc, char* argv[])
@@ -39,7 +39,7 @@ int main (int argc, char* argv[])
if (argc>1) err=UDFOpenDisc(argv[1]);
else err=UDFOpenDisc(DEFAULTDEVICE);
if (err<0) {
- printf("ERROR: Could not open disc \"%s\"!\n",((argc>=1)?argv[1]:DEFAULTDEVICE));
+ printf("ERROR: Could not open disc \"%s\"!\n",((argc>1)?argv[1]:DEFAULTDEVICE));
printf("Ensure that there is any readable CD or DVD in the drive.\n");
return 1;
}