File: Toc%3A%3Awrite-result-evaluation.patch

package info (click to toggle)
cdrdao 1%3A1.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,236 kB
  • sloc: cpp: 51,492; ansic: 33,096; sh: 4,720; perl: 673; makefile: 446; xml: 70
file content (20 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix evaluation of result returned by Toc::write()
 The change to Toc::write() that happened with cdrdao version 1.2.5 was not
 considered in CdDevice::recordDao().
Author: Sven Geuer <sge@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100713
Forwarded: https://github.com/cdrdao/cdrdao/pull/34
Last-Update: 2025-03-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/gcdmaster/CdDevice.cc
+++ b/gcdmaster/CdDevice.cc
@@ -393,7 +393,7 @@
   // Write out temporary toc file containing all the converted wav
   // files (don't want to rely on cdrdao doing the mp3->wav
   // translation, besides it's already been done).
-  if (!tocEdit->toc()->write(tocFileName, true)) {
+  if (tocEdit->toc()->write(tocFileName, true != 0)) {
     log_message(-2, _("Cannot write temporary toc-file."));
     return false;
   }