[gst-devel] gst_bus_add_watch issue

Benoit Fouet benoit.fouet at purplelabs.com
Thu Aug 24 17:07:26 CEST 2006


Hi all,

I have a problem watching my pipeline bus.
My bus watch funtion is as follows:

static gboolean player_bus_call( GstBus *bus, GstMessage *message,
gpointer userData )
{
  g_print( "I'm alive !\n" );
  return TRUE;
}


and I create the bus watch as follows:

/* create video player pipeline */
pl_ctx->p_pipeline = gst_pipeline_new( "playervideo" );
if  ( !pl_ctx->p_pipeline )
{
  g_print( "Failed to create pipeline\n" );
  goto error;
}

/* Add bus watch */
gst_bus_add_watch( gst_pipeline_get_bus( GST_PIPELINE(
pl_ctx->p_pipeline ) ), player_bus_call, pl_ctx );


Any clue about what's missing ?

Thanks,

-- Ben





More information about the gstreamer-devel mailing list