whitespace
This commit is contained in:
parent
ec95c8da57
commit
ed7bc7c4b4
|
@ -293,18 +293,16 @@ int FfmpegCamera::OpenFfmpeg() {
|
||||||
mFormatContext->interrupt_callback.opaque = this;
|
mFormatContext->interrupt_callback.opaque = this;
|
||||||
|
|
||||||
ret = avformat_open_input(&mFormatContext, mPath.c_str(), nullptr, &opts);
|
ret = avformat_open_input(&mFormatContext, mPath.c_str(), nullptr, &opts);
|
||||||
if ( ret != 0 )
|
if (ret != 0) {
|
||||||
{
|
|
||||||
logPrintf(Logger::ERROR + monitor->Importance(),
|
logPrintf(Logger::ERROR + monitor->Importance(),
|
||||||
"Unable to open input %s due to: %s", mPath.c_str(),
|
"Unable to open input %s due to: %s", mPath.c_str(),
|
||||||
av_make_error_string(ret).c_str());
|
av_make_error_string(ret).c_str());
|
||||||
|
|
||||||
if ( mFormatContext ) {
|
if (mFormatContext) {
|
||||||
avformat_close_input(&mFormatContext);
|
avformat_close_input(&mFormatContext);
|
||||||
mFormatContext = nullptr;
|
mFormatContext = nullptr;
|
||||||
}
|
}
|
||||||
av_dict_free(&opts);
|
av_dict_free(&opts);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
AVDictionaryEntry *e = nullptr;
|
AVDictionaryEntry *e = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue