gst: fix NULL pointer when listing devices

The gstdeviceprovider segfaults when listing the available devices,
because it the pointer to GList * is initialized with NULL instead of
the GList * itself. Don't use a pointer, but use the GList * directly.
This commit is contained in:
Michael Tretter 2019-12-17 13:01:07 +01:00 committed by Wim Taymans
parent dfa8011ed4
commit 5fa7630934
2 changed files with 3 additions and 3 deletions

View file

@ -96,7 +96,7 @@ struct _GstPipeWireDeviceProvider {
int error;
gboolean end;
gboolean list_only;
GList **devices;
GList *devices;
};
struct _GstPipeWireDeviceProviderClass {