Detect changes in resolution in a mjpeg stream

Guillermo Rodriguez Garcia guille.rodriguez at gmail.com
Fri Aug 14 01:40:31 PDT 2015


Hi Sebastian,

2015-08-14 8:50 GMT+02:00 Sebastian Dröge <sebastian at centricular.com>:
> On Do, 2015-08-13 at 21:34 +0200, Guillermo Rodriguez Garcia wrote:
>> I see that all the downstream elements notice the change, then my
>> callback function is called. My problem is that I need to intercept
>> the change before it reaches downstream elements. Is this possible ?
>
> In 0.10 (and also 1.x) you can use the "notify::caps" signal on the
> pad. It will be emitted before the caps are propagated downstream.

I was actually using notify::caps already on another element, so I
don't know why I didn't think of this. Indeed this does exactly what I
need -- I can see the caps event before it is propagated downstream.
Thank you!

Guillermo


More information about the gstreamer-devel mailing list