omxvideodec: fix gst_video_info_from_caps() caps assertion
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 26 Jul 2018 14:30:08 +0000 (16:30 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 30 Aug 2018 08:59:30 +0000 (10:59 +0200)
The "use buffers" code path uses gst_video_info_from_caps() which is
asserting if caps is NULL (because pool was rejected).

https://bugzilla.gnome.org/show_bug.cgi?id=796918

omx/gstomxvideodec.c

index 513ce47..36afda1 100644 (file)
@@ -948,6 +948,9 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self)
       was_enabled = FALSE;
     }
 
+    if (!caps)
+      self->use_buffers = FALSE;
+
     if (self->use_buffers) {
       GList *images = NULL;
       GList *frames = NULL;