rendered paste bodycaugier@minitouf:~/build/gst_17mars$ ./player --gst-debug=rtp*:4,GST_CAPS:2,dynudpsink:5 This program is linked against GStreamer (player:4483): GStreamer-CRITICAL **: gst_caps_get_structure: assertion `index < caps->structs->len' failed (player:4483): GStreamer-CRITICAL **: gst_structure_get_value: assertion `structure != NULL' failed(player:4483): GStreamer-CRITICAL **: gst_structure_get_value: assertion `structure != NULL' failedDEBUG (0x804e840 - 0:00:00.282003000) rtpbin( 4483) gstrtpbin.c(299):gst_rtp_bin_request_new_pad: Pad 0x80dd618 (null) requested!Setting to PLAYINGRunning============#include<stdio.h>#include<stdlib.h>#include <gst/gst.h>GstElement *pipeline, *rtpbin, *rtppay, *alawenc, *audio, *play, *identity;GstCaps *caps;GstPad *pad;int main (int argc, char *argv[]) { guint major, minor, micro, nano; GMainLoop *loop; /* initialize GStreamer */ gst_init (&argc, &argv); loop = g_main_loop_new (NULL, FALSE); /* check input arguments if (argc != 2) { g_print ("Usage: %s <ip_dest:port>\n", argv[0]); return -1; } */ gst_version (&major, &minor, µ, &nano); printf ("This program is linked against GStreamer %d.%d.%d.%d\n", major, minor, micro, nano); play = gst_element_factory_make ("playbin", "play"); g_object_set (G_OBJECT (play), "uri", "file:///home/caugier/test.wav", NULL); pipeline = gst_bin_new("mypipe"); identity = gst_element_factory_make ("identity", "sync"); audio = gst_element_factory_make ("alsasink", "sink"); alawenc = gst_element_factory_make ("alawenc", "enc"); rtppay = gst_element_factory_make ("rtppcmapay", "pay"); rtpbin = gst_element_factory_make ("rtpbin", "netout"); //if (!rtpbin || !rtppay || !alawenc || !audiosrc) { if (!rtpbin || !rtppay || !alawenc) { g_print ("One element could not be created\n"); } //g_object_set (identity, "sync", TRUE, NULL); g_object_set (rtpbin, "localport", 7078, "rtcp-support", FALSE, "queue-delay", 0, "destinations", "192.168.18.53:7078", NULL); //g_object_set (G_OBJECT(rtpbin), "pt-map", self->pt_caps_table, NULL); gst_bin_add_many( GST_BIN(pipeline), identity, alawenc, rtppay, rtpbin, NULL); //gst_bin_add_many( GST_BIN(pipeline), identity, audio, NULL); //if (!gst_element_link_many(identity, audio, NULL)) if (!gst_element_link_many(identity, alawenc, rtppay, rtpbin, NULL)) g_error ("link(alawenc, rtppay, rtpbin) failed!\n"); pad = gst_element_get_pad(identity, "sink"); gst_element_add_pad (GST_ELEMENT (pipeline), gst_ghost_pad_new ("sink", pad)); g_object_set (G_OBJECT (play), "audio-sink", pipeline, NULL); /* Now set to playing and iterate. */ g_print ("Setting to PLAYING\n"); gst_element_set_state (play, GST_STATE_PLAYING); g_print ("Running\n"); g_main_loop_run (loop); return 0;}