summaryrefslogtreecommitdiff
path: root/ext/gdk_pixbuf/gstgdkpixbufdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gdk_pixbuf/gstgdkpixbufdec.c')
-rw-r--r--ext/gdk_pixbuf/gstgdkpixbufdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gdk_pixbuf/gstgdkpixbufdec.c b/ext/gdk_pixbuf/gstgdkpixbufdec.c
index 36cfbc027..589e74fa3 100644
--- a/ext/gdk_pixbuf/gstgdkpixbufdec.c
+++ b/ext/gdk_pixbuf/gstgdkpixbufdec.c
@@ -228,6 +228,8 @@ gst_gdk_pixbuf_dec_setup_pool (GstGdkPixbufDec * filter, GstVideoInfo * info)
guint size, min, max;
target = gst_pad_get_current_caps (filter->srcpad);
+ if (!target)
+ return FALSE;
/* try to get a bufferpool now */
/* find a pool for the negotiated caps now */