From 93b6cf7adb413770d9d43910d9e98da7deccbcdf Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 10 Nov 2022 06:03:45 +0900 Subject: [PATCH] mfvideosrc: Return S_OK from ISampleGrabberCB callback The Microsoft's ISampleGrabber implementation seems to be ignoring the HRESULT return value from the callback though, S_OK is the right HRESULT code. Part-of: --- .../gst-plugins-bad/sys/mediafoundation/gstmfcapturedshow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfcapturedshow.cpp b/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfcapturedshow.cpp index 9bb8f97539..00144bfbf0 100644 --- a/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfcapturedshow.cpp +++ b/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfcapturedshow.cpp @@ -168,7 +168,7 @@ public: if (callback_) callback_ (SampleTime, pBuffer, BufferLen, user_data_); - return E_NOTIMPL; + return S_OK; } private: