mfvideosrc: Fix wrong casting

Don't cast ISoftwareBitmap to IMFMediaBuffer

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1342>
This commit is contained in:
Seungha Yang 2020-06-16 00:11:03 +09:00
parent 86e3df9493
commit f508c8b988

View file

@ -307,7 +307,8 @@ gst_mf_capture_winrt_stop (GstMFSourceObject * object)
hr = self->capture->StopCapture(); hr = self->capture->StopCapture();
while (!g_queue_is_empty (self->queue)) { 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 (); buffer->Release ();
} }