~ubuntu-branches/debian/sid/grip/sid

« back to all changes in this revision

Viewing changes to debian/patches/01-default-encoder.dpatch

  • Committer: Package Import Robot
  • Author(s): Tiago Ilieve
  • Date: 2016-04-04 14:26:23 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20160404142623-zw16rooy7z3xadvu
Tags: 4.1.0-1
Initial release (Closes: #790611)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh /usr/share/dpatch/dpatch-run
2
 
## 01-default-encoder.dpatch by Taku Yasui <tach@debian.or.jp>
3
 
##
4
 
## DP: Set default encoder oggenc. (closes: #135113)
5
 
## DP: Passes track number to oggent (Closes #322738).
6
 
## DP: Using ~/ogg instead of ~/mp3 as output directory.
7
 
## DP: Removes useless 'Created by Grip' comment (Closes: #214723).
8
 
 
9
 
@DPATCH@
10
 
 
11
 
diff -Naur grip-3.3.1.orig/src/grip.c grip-3.3.1/src/grip.c
12
 
--- grip-3.3.1.orig/src/grip.c  2005-06-25 18:00:55.000000000 +0000
13
 
+++ grip-3.3.1/src/grip.c       2006-08-14 22:09:38.000000000 +0000
14
 
@@ -862,7 +862,7 @@
15
 
   ginfo->using_builtin_cdp=FALSE;
16
 
 #endif
17
 
   ginfo->in_rip_thread=FALSE;
18
 
-  strcpy(ginfo->ripfileformat,"~/mp3/%A/%d/%n.wav");
19
 
+  strcpy(ginfo->ripfileformat,"~/ogg/%A/%d/%n.wav");
20
 
 #ifdef __linux__
21
 
   FindExeInPath("cdparanoia", ginfo->ripexename, sizeof(ginfo->ripexename));
22
 
   strcpy(ginfo->ripcmdline,"-d %c %t:[.%s]-%t:[.%e] %w");
23
 
@@ -885,24 +885,24 @@
24
 
   ginfo->stop_between_tracks=FALSE;
25
 
   *ginfo->wav_filter_cmd='\0';
26
 
   *ginfo->disc_filter_cmd='\0';
27
 
-  ginfo->selected_encoder=1;
28
 
-  strcpy(ginfo->mp3cmdline,"-h -b %b %w %m");
29
 
-  FindExeInPath("lame", ginfo->mp3exename, sizeof(ginfo->mp3exename));
30
 
-  strcpy(ginfo->mp3fileformat,"~/mp3/%A/%d/%n.%x");
31
 
-  strcpy(ginfo->mp3extension,"mp3");
32
 
+  ginfo->selected_encoder=6;
33
 
+  strcpy(ginfo->mp3cmdline,"-a %a -b %b -d %y -G %g -N %t -l %d -o %m -t %n %w");
34
 
+  FindExeInPath("oggenc", ginfo->mp3exename, sizeof(ginfo->mp3exename));
35
 
+  strcpy(ginfo->mp3fileformat,"~/ogg/%A/%d/%n.%x");
36
 
+  strcpy(ginfo->mp3extension,"ogg");
37
 
   ginfo->mp3nice=0;
38
 
   *ginfo->mp3_filter_cmd='\0';
39
 
   ginfo->delete_wavs=TRUE;
40
 
   ginfo->add_to_db=FALSE;
41
 
   ginfo->add_m3u=TRUE;
42
 
   ginfo->rel_m3u=TRUE;
43
 
-  strcpy(ginfo->m3ufileformat,"~/mp3/%A-%d.m3u");
44
 
+  strcpy(ginfo->m3ufileformat,"~/ogg/%A-%d.m3u");
45
 
   ginfo->kbits_per_sec=128;
46
 
   ginfo->edit_num_cpu=1;
47
 
   ginfo->doid3=TRUE;
48
 
   ginfo->doid3=FALSE;
49
 
   ginfo->tag_mp3_only=TRUE;
50
 
-  strcpy(ginfo->id3_comment,_("Created by Grip"));
51
 
+  strcpy(ginfo->id3_comment,_(""));
52
 
   *ginfo->cdupdate='\0';
53
 
   ginfo->sprefs.no_lower_case=FALSE;
54
 
   ginfo->sprefs.allow_high_bits=FALSE;