From 96d691694a54b3829e1ffcac2b1a408bf051bd1b Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Thu, 2 Jul 2015 16:27:06 +0900 Subject: [PATCH] amc: fix check whether we managed to acquire a buffer https://bugzilla.gnome.org/show_bug.cgi?id=751821 --- sys/androidmedia/gstamc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/androidmedia/gstamc.c b/sys/androidmedia/gstamc.c index 862e74f..f5aaebf 100644 --- a/sys/androidmedia/gstamc.c +++ b/sys/androidmedia/gstamc.c @@ -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; -- 2.7.4