deinterlace: Drain the field history if the caps are changing
authorSebastian Dröge <sebastian@centricular.com>
Tue, 12 Apr 2016 12:01:28 +0000 (15:01 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 12 Apr 2016 12:01:28 +0000 (15:01 +0300)
commit1f21747cc5d3ee65df8a5f4607720fadc38c7140
tree4139b1d122aea4529a8008b1adee042fbfa130ee
parent0c84b1b10430406975ec401f88a40edfb942f854
deinterlace: Drain the field history if the caps are changing

Otherwise we will use fields from the old caps with everything set up for the
new caps, causing crashes and worse.

Also don't do anything if the same caps are set twice.
gst/deinterlace/gstdeinterlace.c