GNOME Bugzilla – Bug 719657
gstmpegvideoparser: debug category not always initialized soon enough
Last modified: 2013-12-13 00:14:35 UTC
I've got a dvr-ms file which has something weird in codec-data. The parser tries to parse that (gst_mpegv_parse_process_config) which calls gst_mpeg_video_packet_parse_sequence_header that logs error. This is called before the debug category is initialized (which happens in gst_mpeg_video_parse).
Perhaps there should be a separate call to initialize the debug category called when plugin gets loaded?
You could just put the initialization into class_init or the get_type function, then it will be called early enough
GstMpegParser isn't an object, so there is no class_init or get_type, but I changed it to just initialize the category in both places. Fixed in git master commit a167173063ce7407d9a46196d90b512bfff1f5fe Author: Olivier Crête <olivier.crete@collabora.com> Date: Wed Dec 4 17:31:27 2013 -0500 mpegvideoparser: Also initialize debug category in parse_sequence_header Also remove the useless initialized flag, this is already done by the macro https://bugzilla.gnome.org/show_bug.cgi?id=719657
Picked into 1.2