avfvideosrc: Only set latency if we already know our caps
authorSebastian Dröge <sebastian@centricular.com>
Wed, 18 Feb 2015 17:06:09 +0000 (19:06 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 18 Feb 2015 23:03:35 +0000 (01:03 +0200)
commit84ab11afdbfd87bf1aa916cc7803163536513339
treebceb8e21de3942e194047875e16890700ba45de5
parentc37e82587c57b28337972c2ea5bee26ce9f9e8e3
avfvideosrc: Only set latency if we already know our caps

Otherwise we might set bogus values or GST_CLOCK_TIME_NONE.

Also make sure to reset the caps field to NULL after unreffing
the caps to prevent accidential use afterwards, and unref any
old caps before we remember new caps.
sys/applemedia/avfvideosrc.m