mfvideosrc: Fix wrong casting
authorSeungha Yang <seungha@centricular.com>
Mon, 15 Jun 2020 15:11:03 +0000 (00:11 +0900)
committerSeungha Yang <seungha@centricular.com>
Wed, 17 Jun 2020 08:37:05 +0000 (17:37 +0900)
Don't cast ISoftwareBitmap to IMFMediaBuffer

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1342>

sys/mediafoundation/gstmfcapturewinrt.cpp

index c98ff78..8ff2529 100644 (file)
@@ -307,7 +307,8 @@ gst_mf_capture_winrt_stop (GstMFSourceObject * object)
   hr = self->capture->StopCapture();
 
   while (!g_queue_is_empty (self->queue)) {
-    IMFMediaBuffer *buffer = (IMFMediaBuffer *) g_queue_pop_head (self->queue);
+    ISoftwareBitmap *buffer =
+        (ISoftwareBitmap *) g_queue_pop_head (self->queue);
     buffer->Release ();
   }