diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2015-07-02 16:27:06 +0900 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-07-02 09:14:45 +0100 |
commit | 96d691694a54b3829e1ffcac2b1a408bf051bd1b (patch) | |
tree | c09092ce488a2b74ebbe6461138d5e8b93bb8adc | |
parent | 3a3c01e7c7c3e6cb45742b3ad55cc8d84409e4ba (diff) | |
download | gstreamer-plugins-bad-96d691694a54b3829e1ffcac2b1a408bf051bd1b.tar.gz |
amc: fix check whether we managed to acquire a buffer
https://bugzilla.gnome.org/show_bug.cgi?id=751821
-rw-r--r-- | sys/androidmedia/gstamc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/androidmedia/gstamc.c b/sys/androidmedia/gstamc.c index 862e74fa0..f5aaebfd8 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; |