GNOME Bugzilla – Bug 321136
[matroska-mux] avoid reading from unref'ed buffer
Last modified: 2005-11-10 12:23:11 UTC
When matroska muxer is going to write the block duration, it reads the duration from buffer which has been already passed to gst_pad_push and thus possibly unreferenced. The attached patch assigns the duration to a variable before pushing it to pad.
Created attachment 54569 [details] [review] Read duration before pushing buffer
Thanks, committed to CVS: 2005-11-10 Josef Zlomek <josef dot zlomek at xeris dot cz> * gst/matroska/matroska-mux.c: (gst_matroska_mux_write_data): Don't try to ready buffer duration from buffer that we don't own any longer and that might already have been unreffed. (#321136) Cheers -Tim