amc: fix check whether we managed to acquire a buffer

https://bugzilla.gnome.org/show_bug.cgi?id=751821
This commit is contained in:
Vineeth TM 2015-07-02 16:27:06 +09:00 committed by Tim-Philipp Müller
parent 3a3c01e7c7
commit 96d691694a

View file

@ -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;