How to get the sink pad of flvmux?
Luis de Bethencourt
luisbg at osg.samsung.com
Tue Dec 8 10:09:49 PST 2015
Yakov Sudeikin writes:
> I tried gst_element_get_static_pad (flvMuxer, "sink");
>
> Tried this:
>
> fatal error: use of undeclared identifier 'request_new_pad'
>
> Tried this:
>
> fatal error: use of undeclared identifier 'gst_flv_mux_request_new_pad'
> GstPad *sink_pad = gst_flv_mux_request_new_pad(flvMuxer,
> "video");
>
> And `G_OBJECT_TYPE_NAME(flvMuxer)` returns "GstFlvMux".
>
> I must be missing something basic here, but cannot figure what.
>
> Thank you,
> Yakov
Hi Yakov,
The sink pad in flvmux is not static. gst_element_get_static_pad () only
retrieves already-existing static pads.
You could listen for the "pad-added" [0] signal and connect when a sink pad
becomes available.
Luis
[0] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#GstElement-pad-added
More information about the gstreamer-devel
mailing list