summaryrefslogtreecommitdiff
path: root/avstream/sampledevicemft/basepin.cpp
diff options
context:
space:
mode:
authorjk <[email protected]>2023-08-25 15:16:49 -0700
committerAdonais Romero González <[email protected]>2023-08-25 15:28:29 -0700
commit2639b5d65fa4777c669c45be8f1a13142b0e49a0 (patch)
tree188b78a22b572b62729c68684662dcb7b65297f0 /avstream/sampledevicemft/basepin.cpp
parente0c0afda943a63d5e6ce888e158096428c6654df (diff)
[avstream/sampledevicemft] Fix format change error for YUY2 (#984)
Diffstat (limited to 'avstream/sampledevicemft/basepin.cpp')
-rw-r--r--avstream/sampledevicemft/basepin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/avstream/sampledevicemft/basepin.cpp b/avstream/sampledevicemft/basepin.cpp
index 471bbca7..5195acc5 100644
--- a/avstream/sampledevicemft/basepin.cpp
+++ b/avstream/sampledevicemft/basepin.cpp
@@ -30,7 +30,7 @@ CBasePin::CBasePin( _In_ ULONG id, _In_ CMultipinMft *parent) :
, m_setMediaType(nullptr)
, m_nRefCount(0)
, m_state(DeviceStreamState_Stop)
- , m_dwWorkQueueId(MFASYNC_CALLBACK_QUEUE_UNDEFINED)
+ , m_dwWorkQueueId(MFASYNC_CALLBACK_QUEUE_MULTITHREADED)
{
}
@@ -505,7 +505,7 @@ STDMETHODIMP COutPin::AddPin(
}
#if defined MF_DEVICEMFT_ADD_GRAYSCALER_ // Take this out to remove the gray scaler
- m_queue = new (std::nothrow) CPinQueueWithGrayScale(inputPinId);
+ m_queue = new (std::nothrow) CPinQueueWithGrayScale(inputPinId,Parent());
#else
m_queue = new (std::nothrow) CPinQueue(inputPinId,Parent());
#endif