~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
357a394
)
dvd-sector-copy.c (main): Sink progress setup to just before opening device.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Apr 2022 16:46:11 +0000
(17:46 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 9 Apr 2022 16:46:11 +0000
(17:46 +0100)
dvd-sector-copy.c
patch
|
blob
|
blame
|
history
diff --git
a/dvd-sector-copy.c
b/dvd-sector-copy.c
index
9186d72
..
27ec397
100644
(file)
--- a/
dvd-sector-copy.c
+++ b/
dvd-sector-copy.c
@@
-1024,8
+1024,6
@@
int main(int argc, char *argv[])
if (argc - optind != 2) f |= f_bogus;
if (f&f_bogus) { usage(stderr); exit(2); }
- setlocale(LC_ALL, "");
- progress_init(&progress);
device = argv[optind]; outfile = argv[optind + 1];
if (badblocks.n) {
@@
-1039,6
+1037,8
@@
int main(int argc, char *argv[])
#endif
}
+ setlocale(LC_ALL, "");
+ progress_init(&progress);
if (open_dvd(device, O_RDONLY, &dvdfd, &dvd)) exit(2);
blksz = SECTORSZ; volsz = device_size(dvdfd, device, &blksz);