omxvideodec: add debug if proposed pool can't provide enough buffers
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Wed, 6 Feb 2019 13:50:44 +0000 (14:50 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 26 Mar 2019 14:15:21 +0000 (15:15 +0100)
We were silently ignoring the pool which was pretty confusing when
debugging.

omx/gstomxvideodec.c

index 1072b82..abe6e30 100644 (file)
@@ -784,6 +784,8 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self)
       max = min;
     } else if (max < min) {
       /* Can't use pool because can't have enough buffers */
+      GST_DEBUG_OBJECT (self,
+          "pool can only provide %d buffers but %d are required", max, min);
       caps = NULL;
     } else {
       min = max;