GNOME Bugzilla – Bug 737411
videoparser: comment out unused custom baseparse flag (with duplicate value)
Last modified: 2014-10-06 12:07:10 UTC
GST_BASE_PARSE_FRAME_FLAG_PARSING, was being defined locally in videoparsers with 0x10000, but this value is already being used by GST_BASE_PARSE_FRAME_FLAG_QUEUE = (1 << 4) in gstbaseparse.h Hence moving the flag to gstbaseparse.h to maintain consistency. Please review
Created attachment 287136 [details] [review] move flag to base parse
Created attachment 287137 [details] [review] gstbaseparse.h
The FLAG_PARSING doesn't even seem to be used in videoparsers, so why not just remove it there?
yes even i saw it was not being used.. but in gstvc1parse.h it is mentioned /* Metadata about the currently parsed frame, only * valid if the GstBaseParseFrame has the * GST_BASE_PARSE_FRAME_FLAG_PARSING flag */ GstVC1StartCode startcode; and the startcode related implementation is under FIXME FIXME: disable BDU check for now as BDU parsing needs more work. so i thought it might be needed if someone decides to implement the FIXME. Or if we remove the flag, then probably we should remove the code related to VC1StartCode as well?
Ok, so comment it out and increase the value perhaps. It seems like a non-issue at the moment :)
comment it out and keep the FIXME as it is? yeah it is minor issue :)
Created attachment 287795 [details] [review] proposed patch Commenting out the unused flag.
Comment on attachment 287795 [details] [review] proposed patch Please use C-style /* comments */ instead of C++-style // comments.
Created attachment 287815 [details] [review] Update the patch as per review comments
https://bug737411.bugzilla-attachments.gnome.org/attachment.cgi?id=287137 Looks like it just changing the coding style but not changing the code itself.
Comment on attachment 287815 [details] [review] Update the patch as per review comments Merged this patch.
Ignored the style patches and merged the good changes.