[gst-devel] Compositing and GStreamer

amartin amartin at vicomtech.org
Thu Feb 3 11:13:23 CET 2011


Dear all,

I've got the solution.

gst_pad_get_name(gst_pad_get_parent_element(gst_pad_get_peer(pad))) returns
the name of the father element of the pad linked to the videomixer.

So, according to this information we can simply define:
static void
onPriorityChange (GstElement *element,
				  GstPad *pad,
				  guint newpriority,
				  gpointer data)

GstPad *sinkpad;
sinkpad = pad;

GstManager *gstManager = (GstManager *) data; // App-Class with the
information

// This name provides data to identity the linked source to retrieve from
App object gstManager the proper xpos ypos and zorder values according to
the designed grid
// name =
gst_pad_get_name(gst_pad_get_parent_element(gst_pad_get_peer(pad)))
// Some code to do that

g_object_set(sinkpad,"zorder",100-gstManager->priority,NULL);
g_object_set(sinkpad,"xpos",gstManager->left,NULL);				
g_object_set(sinkpad,"ypos",gstManager->top,NULL);
 
}

Some things that i do not understand yet why the value of newpriority is
always 0 (the value define for the gnloperation) instead of the value of the
linked gnlfilesource.

Moreover, I don't understand yet what's the meaning and utility of
gst_ghost_pad_get_target that Edward mentioned before.

Best,

Angel
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Compositing-and-GStreamer-tp3059218p3257756.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list