Using decodebin on android gives "Codec only supports GL output but downstream does not"

Hello,

In android JNI project I am using the pipeline:

"filesrc location={} ! qtdemux ! h264parse ! decodebin ! gldownload ! videoconvert ! appsink name=sink"

When I run the code, decodebin starts initialization and tries different available codecs. It tries mediacodec decoders, but gives these errors in the logs:

expected specified color aspects (2:0:0:0)
../gst-libs/gst/video/video-info.c:762:gst_video_info_to_caps invalid matrix 3 for RGB format, using RGB
../sys/androidmedia/gstamcvideodec.c:1985:gst_amc_video_dec_set_format:<amcvideodec-c2androidavcdecoder0> Codec only supports GL output but downstream does not
../gst-libs/gst/video/gstvideodecoder.c:934:gst_video_decoder_setcaps:<amcvideodec-c2androidavcdecoder0> Subclass refused caps

besides ‘amcvideodec-c2androidavcdecoder’ it tries ‘amcvideodec-omxgoogleh264decoder’, ‘amcvideodec-c2goldfishh264decoder’. And finally stops on ‘openh264dec’ and after that pipeline works using this decoder without errors.

But this is SW decoder, and i would like to leverage from HW acceleration.
I thought putting ‘gldownload’ after decodebin will do that trick, but that didn’t work.

What am I doing wrong here? How can i make decodebin use android mediacodecs HW decoders or maybe there is any other way to use them?