Skip to content

Commit

Permalink
[VCM] remove redundant logging
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe committed Apr 12, 2021
1 parent b2088ad commit 3acc94f
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ std::optional<VideoStreamFormat> SelectBestMediaType(wil::com_ptr_nothrow<IPin>&
continue;
}

LOG("Inspecting media type");
auto format = reinterpret_cast<VIDEOINFOHEADER*>(mt->pbFormat);
if (!format || !format->AvgTimePerFrame)
{
Expand All @@ -413,13 +412,11 @@ std::optional<VideoStreamFormat> SelectBestMediaType(wil::com_ptr_nothrow<IPin>&
const auto formatAvgFPS = 10000000LL / format->AvgTimePerFrame;
if (format->AvgTimePerFrame > bestFormat.avgFrameTime || formatAvgFPS < MINIMAL_FPS_ALLOWED)
{
LOG("Skipping mediatype due to low fps");
continue;
}

if (format->bmiHeader.biWidth < bestFormat.width || format->bmiHeader.biHeight < bestFormat.height)
{
LOG("Skipping mediatype due to low mode");
continue;
}

Expand Down

0 comments on commit 3acc94f

Please sign in to comment.