mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
432354e6d4
Check that `self` and `self->callback` are defined. `self` can be set to `NULL` in `remove_listener`, and `self->callback` can be set to `NULL` inside `gst_amc_surface_texture_jni_set_on_frame_available_callback`. This can cause a segfault since the Java object can outlive the C object, and call the callback after `remove_listener` is called. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2024> |
||
---|---|---|
.. | ||
gstamc-codec-jni.c | ||
gstamc-codeclist-jni.c | ||
gstamc-format-jni.c | ||
gstamc-internal-jni.h | ||
gstamcsurface.c | ||
gstamcsurface.h | ||
gstamcsurfacetexture-jni.c | ||
gstamcsurfacetexture-jni.h |