mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
ahs: Don't assert on deinit if initialization failed before
Initialization failure is handled correctly by just not registering the ahssrc element. https://bugzilla.gnome.org/show_bug.cgi?id=774048
This commit is contained in:
parent
a424f04a22
commit
56ee6c4cee
1 changed files with 2 additions and 3 deletions
|
@ -154,8 +154,6 @@ gst_ah_sensor_sensor_sizes_init (void)
|
|||
static void
|
||||
gst_ah_sensor_sensor_sizes_deinit (void)
|
||||
{
|
||||
g_assert_nonnull (sensor_sizes);
|
||||
|
||||
g_hash_table_unref (sensor_sizes);
|
||||
sensor_sizes = NULL;
|
||||
}
|
||||
|
@ -653,7 +651,8 @@ gst_android_hardware_sensor_deinit (void)
|
|||
org_freedesktop_gstreamer_androidmedia_gstahscallback.klass = NULL;
|
||||
}
|
||||
|
||||
gst_ah_sensor_sensor_sizes_deinit ();
|
||||
if (sensor_sizes)
|
||||
gst_ah_sensor_sensor_sizes_deinit ();
|
||||
}
|
||||
|
||||
GstAHSensorManager *
|
||||
|
|
Loading…
Reference in a new issue