summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2018-07-26 16:30:08 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2018-08-30 10:59:30 +0200
commit7d8a314dffb6fe0c42412f1c56e5b4e76300946e (patch)
treee6205cf27fa60665487547e6225d3e8e82da8c12
parent9ed1c2e75ede4e94091413a2f5f4394427870410 (diff)
downloadgst-omx-7d8a314dffb6fe0c42412f1c56e5b4e76300946e.tar.gz
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
-rw-r--r--omx/gstomxvideodec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index 513ce47..36afda1 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -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;