modify debug message

pull/421/head
m-bene 2014-05-15 15:42:27 +02:00
parent 5cb7cd916f
commit 6016206f98
1 changed files with 3 additions and 3 deletions

View File

@ -126,12 +126,12 @@ int FfmpegCamera::PrimeCapture()
{ {
StringVector parts = split(opVect[i],"="); StringVector parts = split(opVect[i],"=");
if (parts.size() > 1) { if (parts.size() > 1) {
if (av_dict_set(&opts, trimSpaces(parts[0]).c_str(), trimSpaces(parts[1]).c_str(), 0)) { if (!av_dict_set(&opts, trimSpaces(parts[0]).c_str(), trimSpaces(parts[1]).c_str(), 0)) {
Debug(2, "set option %d to '%s'", i, trimSpaces(parts[1]).c_str()); Debug(2, "set option %d '%s' to '%s'", i, trimSpaces(parts[0]).c_str(), trimSpaces(parts[1]).c_str());
} }
else else
{ {
Warning( "Error trying to set option %s to '%s'", i, trimSpaces(parts[1]).c_str() ); Warning( "Error trying to set option %d '%s' to '%s'", i, trimSpaces(parts[0]).c_str(), trimSpaces(parts[1]).c_str() );
} }
} }