GNOME Bugzilla – Bug 730854
example: ts-parser: add component, content, stream id, ca id, parential rating descriptors
Last modified: 2014-05-29 12:30:36 UTC
Created attachment 277338 [details] [review] add component descriptor example: ts-parser: add component, content, stream id, ca id, parential rating descriptors
Created attachment 277339 [details] [review] add content descriptor
Created attachment 277340 [details] [review] add stream identifier descriptor
Created attachment 277341 [details] [review] add ca identifier descriptor
Created attachment 277342 [details] [review] add parential rating descriptor
Yay \o/ Some notes: * use "component tag" where appropriate (instead of Descriptor tag) * Any chance we could have an enum for the various content/component types ? At least for the high-nibble ?
Also, the various text fields (like in the component descriptor) should be properly initialized to NULL, otherwise you end up with garbage data
(In reply to comment #5) > Yay \o/ > > Some notes: > * use "component tag" where appropriate (instead of Descriptor tag) > * Any chance we could have an enum for the various content/component types ? At > least for the high-nibble ? o.k. for content -> different between dvb and isdb.
(In reply to comment #5) > * Any chance we could have an enum for the various content/component types ? At > least for the high-nibble ? is it better to mapping it (in parsing method) to metadata tags or to one enum for all contents + one for all components (DVB, ISDB, ATSC etc.)?
Created attachment 277377 [details] [review] add component descriptor
Created attachment 277378 [details] [review] add content descriptor
Created attachment 277379 [details] [review] add stream identifier descriptor
Created attachment 277380 [details] [review] add ca identifier descriptor
Created attachment 277381 [details] [review] add parental rating descriptor
You are re-using the i variable for some loops (ex: ca descriptor) ... .. that i variable is already used for the top-level loop variable Either use a different variable name or move to separate functions
Created attachment 277392 [details] [review] add dvb ca indentifier descriptor
Created attachment 277393 [details] [review] add parential rating descriptor
commited.