avdeinterlace: Don't assume that get_current_caps() returns non-NULL caps after has_c...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 23 Feb 2016 16:19:18 +0000 (18:19 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 23 Feb 2016 16:19:18 +0000 (18:19 +0200)
commit20586e9f2d48e8bac3178172eec184b80cfca91e
tree97d5c274b9df34f5862443db8bbe0f6495464fa0
parent4930a1f46115096a23937101787b3e5e667c81d0
avdeinterlace: 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
ext/libav/gstavdeinterlace.c