omxvideoenc: let encoder base class handle ALLOCATION query
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 17 Sep 2019 07:32:54 +0000 (13:02 +0530)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 17 Sep 2019 07:43:23 +0000 (13:13 +0530)
Fixing a regression introduced in my previous patch
(7c40a91c31aa4bcbb191f7c6a5d222edf9dfd9d1).

The ALLOCATION query needs to be handled by GstVideoEncoder (to call
propose_allocation()) so chain up the query handling rather than early
returning.

omx/gstomxvideoenc.c

index 1d302bd..a007dad 100644 (file)
@@ -3313,7 +3313,6 @@ gst_omx_video_enc_sink_query (GstVideoEncoder * encoder, GstQuery * query)
           GST_QUERY_TYPE_NAME (query));
 
       gst_omx_video_enc_drain (self);
-      return TRUE;
     }
     default:
       break;