31main (
int argc,
char *argv[])
54gst_init (&argc, &argv);
56 gst->
pipeline = GST_PIPELINE (gst_pipeline_new (
"gnunet-media-helper"));
60 printf (
"this is the speaker \n");
64 printf (
"this is the microphone \n");
73 gst_element_link_many (gnunetsrc,
decoder,
sink, NULL);
83 gst_bin_add_many (GST_BIN (gst->
pipeline),
source, encoder, gnunetsink,
85 gst_element_link_many (
source, encoder, gnunetsink, NULL);
93 gst_element_set_state (GST_ELEMENT (gst->
pipeline), GST_STATE_PLAYING);
109 loop = g_main_loop_new (NULL, FALSE);
111 g_main_loop_run (loop);
128 g_print (
"Returned, stopping playback\n");
131 gst_element_set_state (GST_ELEMENT (gst->
pipeline), GST_STATE_NULL);
static GstElement * source
Appsrc instance into which we write data for the pipeline.
static GstElement * decoder
static uint32_t type
Type string converted to DNS type value.
void gg_load_configuration(GNUNET_gstData *d)
GstBin * get_app(GNUNET_gstData *d, int type)
void pl_graph(GstElement *pipeline)
void gg_setup_gst_bus(GNUNET_gstData *d)
int gnunet_read(GNUNET_gstData *d)
GstBin * get_coder(GNUNET_gstData *d, int type)
GstBin * get_audiobin(GNUNET_gstData *d, int type)
int main(int argc, char *argv[])