Commit 96d69169 authored by Vineeth TM's avatar Vineeth TM Committed by Tim-Philipp Müller
Browse files

amc: fix check whether we managed to acquire a buffer
parent 3a3c01e7
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment