mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
mediafoundation: Fix infinite loop in device provider
Initialize source state with GST_MF_DEVICE_NOT_FOUND to terminate loop immediately if no available capture device is available Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3492 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6704>
This commit is contained in:
parent
926d5366b9
commit
b9feb47de5
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ gst_mf_source_object_init (GstMFSourceObject * self)
|
|||
{
|
||||
self->device_index = DEFAULT_DEVICE_INDEX;
|
||||
self->source_type = DEFAULT_SOURCE_TYPE;
|
||||
self->source_state = GST_MF_DEVICE_NOT_FOUND;
|
||||
|
||||
g_weak_ref_init (&self->client, nullptr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue