summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-03-01 17:44:07 -0600
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-03-01 17:52:05 -0600
commitc00b35fe15ceb57936b61e9ef7d35cbcc474d12d (patch)
tree5da065cae8dcecea7a9f2bc4b2682c5efa8f6c85
parent1328b3b51984010eaf2bc3631bc20270452187e6 (diff)
vaapivideobufferpool: fix regression
The allocator in the config may be not VAAPI (videotestsrc, for example) and it will not have a video info configuration. https://bugzilla.gnome.org/show_bug.cgi?id=789476
-rw-r--r--gst/vaapi/gstvaapivideobufferpool.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapivideobufferpool.c b/gst/vaapi/gstvaapivideobufferpool.c
index 73ebf829..c47b99e9 100644
--- a/gst/vaapi/gstvaapivideobufferpool.c
+++ b/gst/vaapi/gstvaapivideobufferpool.c
@@ -171,7 +171,10 @@ gst_vaapi_video_buffer_pool_set_config (GstBufferPool * pool,
if (allocator) {
const GstVideoInfo *alloc_vinfo =
gst_allocator_get_vaapi_video_info (allocator, &surface_alloc_flags);
- vinfo_changed = gst_video_info_changed (alloc_vinfo, &new_vip);
+ if (!alloc_vinfo)
+ vinfo_changed = TRUE;
+ else
+ vinfo_changed = gst_video_info_changed (alloc_vinfo, &new_vip);
}
if (vinfo_changed && allocator && priv->use_dmabuf_memory) {