[gst-devel] How to be notified of new caps
mail at renestadler.de
Mon Jun 18 13:00:30 CEST 2007
Am Montag, den 18.06.2007, 03:48 -0700 schrieb Fabrice Triboix:
> Hi all,
> I would like my application to be notified of new caps
> sets on existing pads.
> Ex: a pad exists but with ANY caps, a first packet
> comes through with some caps and the "set_caps()"
> function of the pad is called. Is it possible to have
> a function called back in my application to be
> notified that some caps has been set on the pad?
> Thank you very much!
Pads have a 'caps' property, so you can connect to the "notify::caps"
detailed signal. See also:
More information about the gstreamer-devel