[gst-devel] gst_bus_add_watch issue

Benoit Fouet benoit.fouet at purplelabs.com
Thu Aug 24 18:36:25 CEST 2006


hi again !

seems to be linked to the fact I was not using g_main_loop...

sorry for the noise ;)

-- Ben

Benoit Fouet wrote:

>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
>
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>gstreamer-devel mailing list
>gstreamer-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  
>




More information about the gstreamer-devel mailing list