mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
androidmedia: Permit Codec surface to be NULL
The AMC encoder wrapper doesn't support input surfaces yet, and passes NULL when configuring the underlying codec. This was broken in commit 7fcf3e Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1102
This commit is contained in:
parent
916966606b
commit
cfe318ea03
1 changed files with 4 additions and 3 deletions
|
@ -523,7 +523,8 @@ gst_amc_codec_configure (GstAmcCodec * codec, GstAmcFormat * format,
|
|||
|
||||
g_return_val_if_fail (codec != NULL, FALSE);
|
||||
g_return_val_if_fail (format != NULL, FALSE);
|
||||
g_return_val_if_fail (GST_IS_AMC_SURFACE_TEXTURE_JNI (surface), FALSE);
|
||||
g_return_val_if_fail (surface == NULL
|
||||
|| GST_IS_AMC_SURFACE_TEXTURE_JNI (surface), FALSE);
|
||||
|
||||
env = gst_amc_jni_get_env ();
|
||||
|
||||
|
@ -539,8 +540,8 @@ gst_amc_codec_configure (GstAmcCodec * codec, GstAmcFormat * format,
|
|||
flags = 1;
|
||||
|
||||
return gst_amc_jni_call_void_method (env, err, codec->object,
|
||||
media_codec.configure, format->object, codec->surface->jobject, NULL,
|
||||
flags);
|
||||
media_codec.configure, format->object,
|
||||
codec->surface ? codec->surface->jobject : NULL, NULL, flags);
|
||||
}
|
||||
|
||||
GstAmcFormat *
|
||||
|
|
Loading…
Reference in a new issue