omxvideodec: fix gst_video_info_from_caps() caps assertion

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
This commit is contained in:
Guillaume Desmottes 2018-07-26 16:30:08 +02:00
parent 9ed1c2e75e
commit 7d8a314dff

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