Skip to content

Commit

Permalink
Пробуем использовать функцию DLog.
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lt committed Nov 7, 2024
1 parent fe3726c commit fc17597
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/InputFile2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,17 +490,23 @@ void VDFFInputFile::DisplayInfo(VDXHWND hwndParent)

void VDFFInputFile::Init(const wchar_t* szFile, IVDXInputOptions* in_opts)
{
DLog(L"VDFFInputFile::Init - %s", szFile);

if (!szFile) {
mContext.mpCallbacks->SetError("No File Given");
return;
}

if (in_opts) {
VDFFInputFileOptions* opt = (VDFFInputFileOptions*)in_opts;
if (opt->data.disable_cache) cfg_disable_cache = true;
if (opt->data.disable_cache) {
cfg_disable_cache = true;
}
}

if (cfg_frame_buffers < 1) cfg_frame_buffers = 1;
if (cfg_frame_buffers < 1) {
cfg_frame_buffers = 1;
}

wcscpy_s(path, szFile);

Expand All @@ -509,7 +515,9 @@ void VDFFInputFile::Init(const wchar_t* szFile, IVDXInputOptions* in_opts)
// audio will manage its own
m_pFormatCtx = open_file(AVMEDIA_TYPE_VIDEO);

if (auto_append) do_auto_append(szFile);
if (auto_append) {
do_auto_append(szFile);
}
}

int VDFFInputFile::GetFileFlags()
Expand Down

0 comments on commit fc17597

Please sign in to comment.