[gst-devel] Random Crashes using gst_caps_new_simple

Tim Müller t.i.m at zen.co.uk
Sun May 4 13:46:23 CEST 2008


On Sat, 2008-05-03 at 22:09 -0400, Nicholas Haddad wrote:

> (...)
> I'm doing this inside the decode bin's new pad callback and am getting  
> random crashes on this call (after every 5th call or so).  Am I doing  
> something wrong in the code above?

Doesn't look like it.

> Is it valid to create a new caps  
> object inside the decode bin's on new pad callback?

Of course.

> I presume this is happening on a gstreamer thread and didn't know if
>  there was some issue in doing this.

There shouldn't be an issue with that, it's done all the time.

> Also, when crashing I get a one line stack trace with the following  
> code:
> 
> [0] libglib-2.0.so.0:g_str_hash~(0x2aaacbdb4000, 0x2aaacbdb5300, 1, 0)  
> + 0 bytes
> 
> Any ideas?

Get a proper strack trace with full debugging symbols etc.?

Do you have a small test case to reproduce the problem?

Cheers
 -Tim






More information about the gstreamer-devel mailing list