GNOME Bugzilla – Bug 729485
avfvideosrc: Cannot reconfigure caps
Last modified: 2016-01-19 21:14:36 UTC
Once avfvideosrc caps are fixated in setCaps, setCaps is not allowed to be called again without taking down the element to stop it from running. A simple test to demonstrate this can be achieved with a pipeline as follows:
avfvideosrc ! capsfilter ! fakesink
And then switch the caps on the caps filter after having the pipeline run for a second or two.
This actually hits an assertion:
ERROR:avfvideosrc.m:585:__30-[GstAVFVideoSrcImpl setCaps:]_block_invoke: assertion failed: (![session isRunning])
Abort trap: 6
This is fixed now, last commit that reenabled it all is:
Author: Alessandro Decina <firstname.lastname@example.org>
Date: Wed Jan 6 16:50:00 2016 +1100
applemedia: avfvideosrc: enable renegotiation
We can actually renegotiate now, so remove old check which disabled it.