[gst-devel] How to detect aspectratio change?

Michael Smith msmith at xiph.org
Wed Feb 11 20:56:05 CET 2009


On Wed, Feb 11, 2009 at 11:25 AM, Thomas Loewe <lazyt at gmx.net> wrote:
>
> Hi,
>
> how can i detect an aspectratio change during play?
>
> At the moment i use "notify::caps" on the videodecoder-src-pad to calculate
> the correct aspect for my videowindow which works fine, but if the stream
> changes between 4:3 <-> 16:9 this isn't detected. I have to stop/start the
> pipeline to correct this manually.

That should work fine - you're describing the right way to do it,
maybe there's just a bug in your code?

Mike




More information about the gstreamer-devel mailing list