How can i get rtpbin
Bob Huang
hhbjsj at 163.com
Wed Nov 11 17:05:22 PST 2015
Hi Sebastian,
Thank you for your rely.
I did what you said. It likes this:
1.
data->pipeline = gst_parse_launch("playbin", &error);
g_signal_connect (data->pipeline, "source-setup", (GCallback)(source_setup),
&data);
2.
void static source_setup (GstElement *playbin, GstElement *source,
CustomData data) {
gchar *name;
name = gst_element_get_name(source);// is this right?
GST_DEBUG ("name:%s\n", name);
g_free (name);
g_signal_connect (source, "new-manager", (GCallback)(new_manager),
&data);
}
then print the name:source. is this right?
3.
void static new_manager (GstElement *rtspsrc, GstElement *manager, gpointer
data){
GST_DEBUG ("new_manager has been created.\n");
gchar *test;
test = gst_element_get_name(manager);
GST_DEBUG ("GstElement name:%s\n", test);
g_free(test);
}
also, it print GstElement name:manager
I want to confirm whether rtpbin created right? How to do that?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-can-i-get-rtpbin-tp4674458p4674475.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list