detecting the stream property (video dimensions) changes
Olivier Crête
olivier.crete at collabora.com
Tue Sep 13 22:35:43 UTC 2016
Hi,
On Tue, 2016-09-13 at 18:32 -0400, Uğur Bozkaya wrote:
> What is the proper way to detect the changes on the incoming stream
> properties. The incoming realtime stream can change it’s dimensions
> while the pipeline is running. How can i get notified about these
> changes?
When the resolution changes, the "caps" describing the stream change.
You can hook up to a pad after the parser (or the decoder) using
g_signal_connect (pad, "notify::caps, ...); and your callback will be
called when the caps change, you can then read the "caps" property to
find the latest ones and check if the things that interest you have
changed.
--
Olivier Crête
olivier.crete at collabora.com
More information about the gstreamer-devel
mailing list