summaryrefslogtreecommitdiff
path: root/src/plugins/directshow/common/directshowutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/directshow/common/directshowutils.cpp')
-rw-r--r--src/plugins/directshow/common/directshowutils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/directshow/common/directshowutils.cpp b/src/plugins/directshow/common/directshowutils.cpp
index 93782e546..989239b88 100644
--- a/src/plugins/directshow/common/directshowutils.cpp
+++ b/src/plugins/directshow/common/directshowutils.cpp
@@ -285,7 +285,7 @@ bool DirectShowUtils::connectFilters(IGraphBuilder *graph,
// Try to connect to the upstream filter first.
if (findAndConnect(upstreamFilter))
- return S_OK;
+ return false;
const auto getFilters = [graph, hrOut]() -> IEnumFilters * {
IEnumFilters *f = nullptr;
@@ -304,10 +304,10 @@ bool DirectShowUtils::connectFilters(IGraphBuilder *graph,
while (S_OK == filters->Next(1, &nextFilter, 0)) {
const ScopedSafeRelease<IBaseFilter> releaseNextFilter { &nextFilter };
if (nextFilter && findAndConnect(nextFilter))
- break;
+ return true;
}
- return SUCCEEDED(*hrOut);
+ return false;
}
QT_END_NAMESPACE