omxvideodec: add debug if proposed pool can't provide enough buffers

We were silently ignoring the pool which was pretty confusing when
debugging.
This commit is contained in:
Guillaume Desmottes 2019-02-06 14:50:44 +01:00
parent 7412b39765
commit 6feac3ed26

View 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;