summaryrefslogtreecommitdiff
path: root/third_party/BaseClasses/ctlutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/BaseClasses/ctlutil.cpp')
-rw-r--r--third_party/BaseClasses/ctlutil.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/BaseClasses/ctlutil.cpp b/third_party/BaseClasses/ctlutil.cpp
index 8ccb9dc3..2902df26 100644
--- a/third_party/BaseClasses/ctlutil.cpp
+++ b/third_party/BaseClasses/ctlutil.cpp
@@ -12,6 +12,9 @@
// property methods. We also implement CPosPassThru that can be used by
// renderers and transforms to pass by IMediaPosition and IMediaSeeking
+#include <pjmedia-videodev/config.h>
+
+#if defined(PJMEDIA_VIDEO_DEV_HAS_DSHOW) && PJMEDIA_VIDEO_DEV_HAS_DSHOW != 0
#include <streams.h>
#include <limits.h>
@@ -2539,3 +2542,4 @@ CCmdQueue::GetCommandDueFor(REFERENCE_TIME rtStream, __out CDeferredCommand**ppC
return VFW_E_NOT_FOUND;
}
+#endif /* PJMEDIA_VIDEO_DEV_HAS_DSHOW */