On 10/2/20 11:10 AM, Zebediah Figura wrote:
I think it would be far simpler to query the videoconvert element you've actually just added.
I'm not exactly sure what you mean by this. Do you mean querying the caps of videoconvert's source pad and using the formats there to build the descriptor? This seems like it would be approximately as complex as the current solution, but I'll do it that way if you prefer. Or is there some other solution I'm not thinking of?
FWIW, I queried the caps of the videoconvert's source pad just to test, and saw [1], so if taking that route I think I'd have to add something to remove duplicate formats.