wasapi: Don't cast GstDeviceProvider to GstElement
authorSeungha Yang <seungha.yang@navercorp.com>
Tue, 17 Sep 2019 11:29:03 +0000 (20:29 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 17 Oct 2019 18:51:34 +0000 (19:51 +0100)
commit648753b4bc5636f8cdf3fc963289a019e8d11cfe
tree55768bbc621db23ba031c278388458b648ae884b
parent6635133a144dd6df1ad36199f99bf0c5243f8545
wasapi: Don't cast GstDeviceProvider to GstElement

The GstDeviceProvider isn't subclass of GstElement.

(gst-device-monitor-1.0:49356): GLib-GObject-WARNING **: 20:21:18.651:
invalid cast from 'GstWasapiDeviceProvider' to 'GstElement'
sys/wasapi/gstwasapidevice.c
sys/wasapi/gstwasapiutil.c
sys/wasapi/gstwasapiutil.h