mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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:
parent
86e3df9493
commit
f508c8b988
1 changed files with 2 additions and 1 deletions
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue