Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 stopmotion (0.8.1-1) unstable; urgency=medium
 .
   * New upstream release
   * remove menu file per tech-ctte decision on #741573
   * enable hardening
   * disable dh_auto_test, due to test-jig compile-time error
   * force use of qt4
   * bump policy version
   * use https for packaging repo
Author: Barak A. Pearlmutter <bap@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- stopmotion-0.8.1.orig/src/technical/grabber/commandlinegrabber.cpp
+++ stopmotion-0.8.1/src/technical/grabber/commandlinegrabber.cpp
@@ -43,23 +43,24 @@ bool callSystem(const char* task, const
 		return false;
 	}
 	int code = WEXITSTATUS(r);
-	if (code == 0) {
-		Logger::get().logDebug("Task '%s' returned code 0: %s", task,
+	if (code == 0 || code == 256) {
+		// vgrabberj in daemon mode uses return code 256
+		Logger::get().logDebug("Task '%s' returned code %d: %s", task, code,
 				commandLine);
 		return true;
 	}
 	if (code == 1) {
 		if (warn == doWarn)
-			Logger::get().logWarning("Task '%s' returned code 1: %s", task,
+			Logger::get().logWarning("Task '%s' returned code %d: %s", task, code,
 					commandLine);
 		else
-			Logger::get().logDebug("Task '%s' returned code 1: %s", task,
+			Logger::get().logDebug("Task '%s' returned code %d: %s", task, code,
 					commandLine);
 		return true;
 	}
 	Logger::get().logFatal(
 		"Task '%s' returned code %d: %s",
-				task, r, commandLine);
+				task, code, commandLine);
 	return false;
 }
 
