mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-08 12:51:21 +00:00
amc: fix check whether we managed to acquire a buffer
https://bugzilla.gnome.org/show_bug.cgi?id=751821
This commit is contained in:
parent
3a3c01e7c7
commit
96d691694a
1 changed files with 1 additions and 1 deletions
|
@ -962,7 +962,7 @@ gst_amc_format_get_buffer (GstAmcFormat * format, const gchar * key,
|
|||
goto done;
|
||||
|
||||
*data = (*env)->GetDirectBufferAddress (env, v);
|
||||
if (!data) {
|
||||
if (*data == NULL) {
|
||||
gst_amc_jni_set_error (env, err, GST_LIBRARY_ERROR,
|
||||
GST_LIBRARY_ERROR_FAILED, "Failed get buffer address");
|
||||
goto done;
|
||||
|
|
Loading…
Reference in a new issue