==15476== Memcheck, a memory error detector
==15476== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==15476== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==15476== Command: ./a
==15476== 
GStreamer has detected that it is running inside valgrind.
It might now take different code paths to ease debugging.
Of course, this may also lead to different bugs.
==15476== Thread 2:
==15476== Invalid read of size 4
==15476==    at 0x3F7A809B70: pthread_mutex_lock (pthread_mutex_lock.c:50)
==15476==    by 0x3F7A084DA0: g_mutex_lock (gthread-posix.c:210)
==15476==    by 0x5A29332: connect_pad (gstdecodebin2.c:2013)
==15476==    by 0x5A276B0: analyze_new_pad (gstdecodebin2.c:1647)
==15476==    by 0x5A2B1E6: pad_added_cb (gstdecodebin2.c:2449)
==15476==    by 0x3F7D812D83: g_cclosure_marshal_VOID__OBJECTv (gmarshal.c:1312)
==15476==    by 0x3F7D80FBD6: _g_closure_invoke_va (gclosure.c:840)
==15476==    by 0x3F7D8283A7: g_signal_emit_valist (gsignal.c:3211)
==15476==    by 0x3F7D828DE1: g_signal_emit (gsignal.c:3356)
==15476==    by 0x4C6002A: gst_element_add_pad (gstelement.c:691)
==15476==    by 0x89A627C: gst_ogg_demux_activate_chain (gstoggdemux.c:2621)
==15476==    by 0x89A9146: gst_ogg_demux_perform_seek_pull (gstoggdemux.c:3239)
==15476==  Address 0x844af60 is 16 bytes inside a block of size 40 free'd
==15476==    at 0x4A077A6: free (vg_replace_malloc.c:446)
==15476==    by 0x5A2CC55: gst_decode_chain_free_internal (gstdecodebin2.c:2815)
==15476==    by 0x5A2D0B0: gst_decode_group_free_internal (gstdecodebin2.c:2909)
==15476==    by 0x5A2C5D2: gst_decode_chain_free_internal (gstdecodebin2.c:2706)
==15476==    by 0x5A2CC8A: gst_decode_chain_free (gstdecodebin2.c:2831)
==15476==    by 0x5A31658: gst_decode_bin_change_state (gstdecodebin2.c:4215)
==15476==    by 0x4C64C4E: gst_element_change_state (gstelement.c:2592)
==15476==    by 0x4C64AFA: gst_element_set_state_func (gstelement.c:2548)
==15476==    by 0x4C646E6: gst_element_set_state (gstelement.c:2449)
==15476==    by 0x4C40E90: gst_bin_element_set_state (gstbin.c:2292)
==15476==    by 0x4C423C6: gst_bin_change_state_func (gstbin.c:2594)
==15476==    by 0x5A390B9: gst_uri_decode_bin_change_state (gsturidecodebin.c:2577)
==15476== 
==15476== Invalid read of size 4
==15476==    at 0x3F7A8057A6: __pthread_mutex_lock_full (pthread_mutex_lock.c:144)
==15476==    by 0x3F7A084DA0: g_mutex_lock (gthread-posix.c:210)
==15476==    by 0x5A29332: connect_pad (gstdecodebin2.c:2013)
==15476==    by 0x5A276B0: analyze_new_pad (gstdecodebin2.c:1647)
==15476==    by 0x5A2B1E6: pad_added_cb (gstdecodebin2.c:2449)
==15476==    by 0x3F7D812D83: g_cclosure_marshal_VOID__OBJECTv (gmarshal.c:1312)
==15476==    by 0x3F7D80FBD6: _g_closure_invoke_va (gclosure.c:840)
==15476==    by 0x3F7D8283A7: g_signal_emit_valist (gsignal.c:3211)
==15476==    by 0x3F7D828DE1: g_signal_emit (gsignal.c:3356)
==15476==    by 0x4C6002A: gst_element_add_pad (gstelement.c:691)
==15476==    by 0x89A627C: gst_ogg_demux_activate_chain (gstoggdemux.c:2621)
==15476==    by 0x89A9146: gst_ogg_demux_perform_seek_pull (gstoggdemux.c:3239)
==15476==  Address 0x844af60 is 16 bytes inside a block of size 40 free'd
==15476==    at 0x4A077A6: free (vg_replace_malloc.c:446)
==15476==    by 0x5A2CC55: gst_decode_chain_free_internal (gstdecodebin2.c:2815)
==15476==    by 0x5A2D0B0: gst_decode_group_free_internal (gstdecodebin2.c:2909)
==15476==    by 0x5A2C5D2: gst_decode_chain_free_internal (gstdecodebin2.c:2706)
==15476==    by 0x5A2CC8A: gst_decode_chain_free (gstdecodebin2.c:2831)
==15476==    by 0x5A31658: gst_decode_bin_change_state (gstdecodebin2.c:4215)
==15476==    by 0x4C64C4E: gst_element_change_state (gstelement.c:2592)
==15476==    by 0x4C64AFA: gst_element_set_state_func (gstelement.c:2548)
==15476==    by 0x4C646E6: gst_element_set_state (gstelement.c:2449)
==15476==    by 0x4C40E90: gst_bin_element_set_state (gstbin.c:2292)
==15476==    by 0x4C423C6: gst_bin_change_state_func (gstbin.c:2594)
==15476==    by 0x5A390B9: gst_uri_decode_bin_change_state (gsturidecodebin.c:2577)
==15476== 
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_lock': Invalid argument.  Aborting.
==15476== 
==15476== HEAP SUMMARY:
==15476==     in use at exit: 2,342,483 bytes in 15,223 blocks
==15476==   total heap usage: 36,570 allocs, 21,347 frees, 6,215,783 bytes allocated
==15476== 
==15476== LEAK SUMMARY:
==15476==    definitely lost: 16,384 bytes in 1 blocks
==15476==    indirectly lost: 0 bytes in 0 blocks
==15476==      possibly lost: 1,473,811 bytes in 9,436 blocks
==15476==    still reachable: 852,288 bytes in 5,786 blocks
==15476==         suppressed: 0 bytes in 0 blocks
==15476== Rerun with --leak-check=full to see details of leaked memory
==15476== 
==15476== For counts of detected and suppressed errors, rerun with: -v
==15476== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 2 from 2)

