GNOME Bugzilla – Bug 678433
0.11: x264enc broken after latest port
Last modified: 2012-06-21 07:46:51 UTC
Created attachment 216776 [details] [review] Patch Tag event handler attempts to modify taglist that is not modifiable. GstFlowReturn variable is returned uninitialized in some cases. Btw. perhaps the demuxers could print a warning or error message if the GstFlowReturn value is too weird, right now they just quit silently which is not very nice.
Review of attachment 216776 [details] [review]: ::: ext/x264/gstx264enc.c @@ +1567,3 @@ + tags = gst_tag_list_copy (tags); + s = gst_event_get_structure (event); + event = gst_event_new_tag (gst_structure_get_name (s), tags); I don't think this is correct. The reference of the event passed to this function is owned by the function. Making writable should just work, and the way you're doing it now you're leaking the original event.
I must have overlooked the leak, the original code doesn't work though. gst_mini_object_make_writable doesn't make the tag-list inside the event writable. I can submit another patch that fixes the leak, I'm not sure how else do you want to fix this.
Just fixing the leak is fine.
Created attachment 216856 [details] [review] Fixes uninitialized variable and taglist Also the leak from previous patch
Comment on attachment 216856 [details] [review] Fixes uninitialized variable and taglist commit 711d2b18a7cccf8216cea133b5a0079296c680b4 Author: Matej Knopp <matej.knopp@gmail.com> Date: Wed Jun 20 13:36:25 2012 -0400 x264enc: Fix unitialized variable and taglist event