1
#!/bin/sh /usr/share/dpatch/dpatch-run
2
## 02-empty-m3u.dpatch by Taku YASUI <tach@debian.or.jp>
4
## DP: Fix: empty .m3u files left around if "rip whole CD?" dialog
5
## DP: (closes: #179878)
9
diff -Naur grip-3.3.1.orig/src/rip.c grip-3.3.1/src/rip.c
10
--- grip-3.3.1.orig/src/rip.c 2005-06-25 18:00:55.000000000 +0000
11
+++ grip-3.3.1/src/rip.c 2006-07-29 08:02:31.000000000 +0000
16
+void RemoveM3U(GripInfo *ginfo)
19
+ EncodeTrack enc_track;
23
+ if (!ginfo->have_disc) return;
25
+ str=g_string_new(NULL);
27
+ FillInTrackInfo(ginfo, 0, &enc_track);
28
+ TranslateString(ginfo->m3ufileformat, str, TranslateSwitch,
29
+ &enc_track, TRUE, &(ginfo->sprefs));
31
+ fp=fopen(str->str, "r");
34
+ testchar = fgetc(fp);
36
+ if (testchar == EOF)
41
void KillRip(GtkWidget *widget,gpointer data)
44
@@ -1341,7 +1366,10 @@
50
+ RemoveM3U((GripInfo *) data);
54
Debug(_("Ripping whole CD\n"));