changing Caps of a pad
Josh Doe
josh at joshdoe.com
Thu Nov 21 07:25:24 PST 2013
On Thu, Nov 21, 2013 at 9:34 AM, Eric Trousset <etrousset at awox.com> wrote:
> I am writing a src element. At some point, I need to change the caps of the
> output.
>
> I need the change the width and the height of the output?
I assume you mean you wish to change the caps from within your src
element. If you're using 0.10 I believe you can just change the caps
you set on the GstBuffer, which will start renegotiation. In 1.0 I
just send a STREAM_START, CAPS, then NEW_SEGMENT event before sending
the next buffer, but you might be able to get away with just sending
the CAPS event.
-Josh
More information about the gstreamer-devel
mailing list