[gst-devel] Compositing and GStreamer

amartin amartin at vicomtech.org
Mon Jan 31 15:22:50 CET 2011


Dear Timothy and Edward,

Please, would you mind posting also the code of the callback functionon
PriorityChange that includes the gst_ghost_pad_get_target call?

g_object_connect(oper, "signal::input-priority-changed", onPriorityChange,
mixer, NULL );

I am trying to accomplish the callback function but i don't achieve it (It
is never called).

I've tried with several alternatives from the following code:
static void
onPriorityChange (GstElement *element,
                                  GstPad *pad,
                                  guint newpriority,     // Based on
gst-inpect gnloperation signal description
                                  gpointer data)
{
        GstPad *sinkpad;
        GstPad *ghostpad;

        printf("PRIORITY %d \n", newpriority);

        // class with the data
        GstManager *gstManager = (GstManager *) data; // data is a program
object with a lot of data including the mixer

// ghostpad = gst_element_get_static_pad (gstManager->mixer, "sink");
        ghostpad = GST_GHOST_PAD (pad);
        sinkpad = gst_ghost_pad_get_target (GST_GHOST_PAD (ghostpad));

        // Some code to retrieve the proper xpos and zpos from gstManager
according to newpriority

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

        gst_object_unref (sinkpad);
}

Thank you in advance,

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




More information about the gstreamer-devel mailing list