[SCM] libdvdnav/master: Update patch for the Hurd
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Tue Feb 11 03:07:05 UTC 2014
The following commit has been merged in the master branch:
commit b9381d80093fae509e82ca4603b4b18b1ba42117
Author: Reinhard Tartler <siretart at tauware.de>
Date: Tue Feb 11 02:28:03 2014 +0000
Update patch for the Hurd
diff --git a/debian/patches/0002-hurd.patch b/debian/patches/0002-hurd.patch
index cccf663..63b706c 100644
--- a/debian/patches/0002-hurd.patch
+++ b/debian/patches/0002-hurd.patch
@@ -5,7 +5,7 @@ Description:
--- a/src/dvdnav.c
+++ b/src/dvdnav.c
-@@ -105,8 +105,7 @@
+@@ -166,8 +166,7 @@ dvdnav_status_t dvdnav_open(dvdnav_t** d
}
/* Set the path. FIXME: Is a deep copy 'right' */
@@ -17,7 +17,7 @@ Description:
this->file = DVDOpenFile(vm_get_dvd_reader(this->vm), 0, DVD_READ_MENU_VOBS);
--- a/src/dvdnav_internal.h
+++ b/src/dvdnav_internal.h
-@@ -65,13 +65,6 @@
+@@ -65,13 +65,6 @@ static inline int _private_gettimeofday(
/* Maximum length of an error string */
#define MAX_ERR_LEN 255
@@ -31,7 +31,7 @@ Description:
#ifndef DVD_VIDEO_LB_LEN
#define DVD_VIDEO_LB_LEN 2048
#endif
-@@ -144,7 +137,7 @@
+@@ -144,7 +137,7 @@ typedef struct dvdnav_vobu_s {
struct dvdnav_s {
/* General data */
@@ -53,7 +53,7 @@ Description:
#endif /* _MSC_VER */
#include <inttypes.h>
-@@ -191,7 +187,7 @@
+@@ -198,7 +194,7 @@ static int parseblock(char *buf, int *do
remap_t* remap_loadmap( char *title) {
char buf[160];
@@ -62,11 +62,12 @@ Description:
char *home;
int res;
FILE *fp;
-@@ -205,14 +201,19 @@
+@@ -212,14 +208,20 @@ remap_t* remap_loadmap( char *title) {
fprintf(MSG_OUT, "libdvdnav: Unable to find home directory" );
return NULL;
}
- snprintf(fname, sizeof(fname), "%s/.dvdnav/%s.map", home, title);
++
+ fname = malloc(strlen("/.dvdnav/.map") + strlen(home) + strlen(title) + 1);
+ if (!fname)
+ return NULL;
@@ -75,11 +76,11 @@ Description:
/* Open the map file */
fp = fopen( fname, "r");
if (!fp) {
- fprintf(MSG_OUT, "libdvdnav: Unable to find map file '%s'\n", fname);
-+ free(fname);
- return NULL;
+ fprintf(MSG_OUT, "libdvdnav: Unable to find map file '%s'\n", fname);
++ free(fname);
+ return NULL;
}
+ free(fname);
/* Load the map file */
- map = remap_new( title);
+ if ((map = remap_new( title)) == NULL) {
--
libdvdnav packaging
More information about the pkg-multimedia-commits
mailing list