//}\r
strcpy(prev, line);\r
sanitize((uint8_t*)line);\r
+\r
+ int len = strlen(line);\r
+ if(len > 0)\r
+ line[len-1] = 0;\r
\r
if(level == AV_LOG_DEBUG)\r
CASPAR_LOG(debug) << L"[ffmpeg] " << line;\r
}\r
catch(averror_stream_not_found&)\r
{\r
- CASPAR_LOG(warning) << "No video-stream found. Running without video."; \r
+ CASPAR_LOG(warning) << print() << " No video-stream found. Running without video."; \r
}\r
catch(...)\r
{\r
CASPAR_LOG_CURRENT_EXCEPTION();\r
- CASPAR_LOG(warning) << "Failed to open video-stream. Running without video."; \r
+ CASPAR_LOG(warning) << print() << "Failed to open video-stream. Running without video."; \r
}\r
\r
try\r
}\r
catch(averror_stream_not_found&)\r
{\r
- CASPAR_LOG(warning) << "No audio-stream found. Running without audio."; \r
+ CASPAR_LOG(warning) << print() << " No audio-stream found. Running without audio."; \r
}\r
catch(...)\r
{\r
CASPAR_LOG_CURRENT_EXCEPTION();\r
- CASPAR_LOG(warning) << "Failed to open audio-stream. Running without audio."; \r
+ CASPAR_LOG(warning) << print() << " Failed to open audio-stream. Running without audio."; \r
} \r
\r
if(!video_decoder_ && !audio_decoder_)\r