[gst-devel] How can I catch the source of a message, sending one of my elements to the NULL state?

Tim-Philipp Müller t.i.m at zen.co.uk
Tue Apr 20 15:06:40 CEST 2010


On Tue, 2010-04-20 at 04:38 -0800, wl2776 wrote:

> I am manually building a pipeline.
> One of its elements, a videosink, always falls the the NULL state.
> My application doesn't send it there.
> 
> Several graphviz dumps, created during the pipeline contruction, and debug
> messages from a bus watch, show that it changes states from READY to PAUSED,
> from PAUSED to READY, and then suddenly, from PLAYING to NULL.
> 
> My application doesn't send the pipeline neither to the playing nor to the
> NULL state by that moment. 
> I'd like to catch, who does this (and thoroughly punish it :) )

Run your code in gdb/your favourite debugger and set a breakpoint on
whatever_video_sink_change_state()? (and continue if it's an upward
state change, obviously)

Cheers
 -Tim






More information about the gstreamer-devel mailing list