dataurisrc: Don't assume that get_current_caps() returns non-NULL caps after has_curr...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 23 Feb 2016 16:17:42 +0000 (18:17 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 23 Feb 2016 16:17:42 +0000 (18:17 +0200)
commitfd42320ec18a82e9c578c9639a4cefb6f02d786e
treee88ceb93af83856d469167942df7c0fce75616dd
parenta5eee1e28a14fb0547b9c9c3fa05199865fb2f06
dataurisrc: Don't assume that get_current_caps() returns non-NULL caps after has_current_caps()

Remove calls to gst_pad_has_current_caps() which then go on to call
gst_pad_get_current_caps() as the caps can go to NULL in between. Instead just
use gst_pad_get_current_caps() and check for NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=759539
gst/dataurisrc/gstdataurisrc.c