summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2019-02-06 14:50:44 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2019-03-26 15:15:21 +0100
commit6feac3ed260a292d16baf229a0e6e1171a952396 (patch)
treebfe1a923d549a02a50295551a65476b042516d0e
parent7412b397652329bd8f9bc66697580527239a9426 (diff)
downloadgst-omx-6feac3ed260a292d16baf229a0e6e1171a952396.tar.gz
omxvideodec: add debug if proposed pool can't provide enough buffers
We were silently ignoring the pool which was pretty confusing when debugging.
-rw-r--r--omx/gstomxvideodec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index 1072b82..abe6e30 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -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;