Changeset 5895:2bcffab4cd73 in roaraudio for libroar/cdrom.c
- Timestamp:
- 04/14/13 13:38:03 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/cdrom.c
r5832 r5895 53 53 pid_t pid; 54 54 int fh[2]; 55 char * bin_cdparanoia = NULL, * dev_stdin = NULL; 56 int err; 55 57 56 58 ROAR_DBG("roar_cdrom_run_cdparanoia(cdrom=%i, data=%i, track=%i, pos='%s') = ?", cdrom, data, track, pos); … … 91 93 close(fh[1]); 92 94 93 execl(roar_libroar_get_path_static("bin-cdparanoia"), roar_libroar_get_path_static("bin-cdparanoia"), "--force-cdrom-device", roar_libroar_get_path_static("dev-stdin"), "-q", 95 bin_cdparanoia = roar_libroar_get_path("bin-cdparanoia", 0, NULL, NULL); 96 if ( bin_cdparanoia == NULL ) 97 return -1; 98 dev_stdin = roar_libroar_get_path("dev-stdin", 0, NULL, NULL); 99 if ( dev_stdin == NULL ) { 100 err = roar_error; 101 roar_mm_free(bin_cdparanoia); 102 roar_error = err; 103 return -1; 104 } 105 execl(bin_cdparanoia, bin_cdparanoia, "--force-cdrom-device", dev_stdin, "-q", 94 106 ROAR_CDROM_CDPARANOIA_OUTPUTFORMAT, pos, "-", NULL); 107 108 roar_mm_free(bin_cdparanoia); 109 roar_mm_free(dev_stdin); 95 110 96 111 ROAR_CDROM_ERROR_NORETURN("We are still alive after exec()!, very bad!, error was: %s", strerror(errno));
Note: See TracChangeset
for help on using the changeset viewer.