After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 730642 - mpegts: atsc: rename TVCT to VCT as it is the same as CVCT
mpegts: atsc: rename TVCT to VCT as it is the same as CVCT
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 1.3.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-05-23 14:19 UTC by Thiago Sousa Santos
Modified: 2014-05-29 08:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mpegts: atsc: rename TVCT to VCT as it is the same as CVCT (11.40 KB, patch)
2014-05-23 14:19 UTC, Thiago Sousa Santos
none Details | Review
examples: ts-parser: add TVCT and CVCT tables dumping (2.92 KB, patch)
2014-05-28 16:13 UTC, Thiago Sousa Santos
committed Details | Review
mpegts: add atsc MGT section parsing (8.18 KB, patch)
2014-05-28 16:13 UTC, Thiago Sousa Santos
rejected Details | Review
mpegts: atsc: rename TVCT to VCT as it is the same as CVCT (12.79 KB, patch)
2014-05-28 16:15 UTC, Thiago Sousa Santos
none Details | Review
mpegts: atsc: rename TVCT to VCT as it is the same as CVCT (12.79 KB, patch)
2014-05-28 19:12 UTC, Thiago Sousa Santos
committed Details | Review

Description Thiago Sousa Santos 2014-05-23 14:19:49 UTC
Before releasing the next stable version (1.4) we should rename the
TVCT code to be simply VCT to be able to use the same struct/functions for
both TVCT and CVCT that have the same fields (except for 2 reserved bits being
used by one of them).
Comment 1 Thiago Sousa Santos 2014-05-23 14:19:52 UTC
Created attachment 277073 [details] [review]
mpegts: atsc: rename TVCT to VCT as it is the same as CVCT

Make the ATSC section parse handle both TVCT and CVCT as they are
nearly the same struct (CVCT uses 2 reserved bits that are ignored
in TVCT).

This is changing the glib type and the struct name but TVCT wasn't
released in a stable package yet so there should be no problem.
Comment 2 Edward Hervey 2014-05-28 06:08:56 UTC
Thanks for that.

Any chance you could also include a patch for the ts-parser example to validate this ?
Comment 3 Thiago Sousa Santos 2014-05-28 16:13:38 UTC
Created attachment 277400 [details] [review]
examples: ts-parser: add TVCT and CVCT tables dumping
Comment 4 Thiago Sousa Santos 2014-05-28 16:13:47 UTC
Created attachment 277401 [details] [review]
mpegts: add atsc MGT section parsing

Add a parsing function for MGT and also detect the EIT tables
for ATSC, the EIT pids are reported inside the MGT and we are still
only relying only on the table id for detecting it. In the future we
would want to also check the pid and compare with whatever the MGT
previously reported to confirm that it is indeed the EIT.

https://bugzilla.gnome.org/show_bug.cgi?id=730435
Comment 5 Thiago Sousa Santos 2014-05-28 16:14:31 UTC
Comment on attachment 277401 [details] [review]
mpegts: add atsc MGT section parsing

Oops, wrong patch
Comment 6 Thiago Sousa Santos 2014-05-28 16:15:37 UTC
Created attachment 277403 [details] [review]
mpegts: atsc: rename TVCT to VCT as it is the same as CVCT

Updated patch with some fixes:

* parsing fixes
* utf16 -> utf8 conversion for channel short name

I only got streams with TVCT to test here, but the code should be mostly the same for both
Comment 7 Thiago Sousa Santos 2014-05-28 19:12:43 UTC
Created attachment 277409 [details] [review]
mpegts: atsc: rename TVCT to VCT as it is the same as CVCT

Added minor fix for when the string is empty
Comment 8 Edward Hervey 2014-05-29 08:45:58 UTC
Pushed, thanks.