summarylogtreecommitdiffstats
path: root/cuetools_to_cue_mpcchap.patch
blob: f72c911ab694050aa97e4256748ebe4b60583378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/mpcchap.c.orig b/mpcchap.c
index 7791f65..d4ed7a2 100644
--- a/mpcchap.c.orig
+++ b/mpcchap.c
@@ -25,7 +25,7 @@
 #include <inttypes.h>
 #include <sys/stat.h>
 
-#include <cuetools/cuefile.h>
+#include <libcue/libcue.h>
 
 // tags.c
 void    Init_Tags        ( void );
@@ -161,14 +161,14 @@
 mpc_status add_chaps_cue(char * mpc_file, char * chap_file, mpc_demux * demux, mpc_streaminfo * si)
 {
 	Cd *cd = 0;
-	int nchap, format = UNKNOWN;
+	int nchap;
 	struct stat stbuf;
 	FILE * in_file;
 	int chap_pos, end_pos, chap_size, i;
 	char * tmp_buff;
     mpc_status ret = MPC_STATUS_OK;
 
-	if (0 == (cd = cf_parse(chap_file, &format))) {
+	if (0 == (cd = cue_parse_file(chap_file))) {
 		fprintf(stderr, "%s: input file error\n", chap_file);
 		return !MPC_STATUS_OK;
 	}