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 598936 - DKS subtitle format
DKS subtitle format
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: 0.10.26
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-10-19 14:36 UTC by Iago Toral
Modified: 2009-10-22 08:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implements support for DKS subtitle format in the subparse element (7.40 KB, patch)
2009-10-19 14:43 UTC, Iago Toral
none Details | Review
Implements support for DKS subtitle format in the subparse element (and tests) (8.71 KB, patch)
2009-10-22 07:02 UTC, Iago Toral
committed Details | Review

Description Iago Toral 2009-10-19 14:36:55 UTC
GStreamer's subparse element does not support DKS subtitle format. 
I'll attach a patch soon.
Comment 1 Iago Toral 2009-10-19 14:43:39 UTC
Created attachment 145785 [details] [review]
Implements support for DKS subtitle format in the subparse element

Patch attached.

Note for reviewers: DKS uses [br] for line breaks, just like subviewer 2.0 subtitles. The function subviewer_unescape_newlines replaces [br] with '\n' but instead of reusing this function I copied it with the name dks_unescape_newlines. Probably this was not a good idea, maybe renaming subviewer_unescape_newlines to something else that does not suggest that the function is subviewer specific is a better approach.
Comment 2 Sebastian Dröge (slomo) 2009-10-22 05:19:45 UTC
Could you make a testcase for this in tests/check/elements/subparse.c? Just copy the subviewer 2.0 test for example and use a small DKS subtitle stream as input.
Comment 3 Iago Toral 2009-10-22 07:02:02 UTC
Created attachment 146018 [details] [review]
Implements support for DKS subtitle format in the subparse element (and tests)

Same patch with the test.

I also added a missing break that was causing a warning and renamed subviewer_unescape_newlines as unescape_newlines_br, which is now used from both the subparse and the dks parsers.
Comment 4 Sebastian Dröge (slomo) 2009-10-22 08:02:50 UTC
commit f63643bd547f14e0bcf9bf0f6cf6065e3ef1df20
Author: Iago Toral <itoral@igalia.com>
Date:   Thu Oct 22 10:02:11 2009 +0200

    subparse: Add support for DKS subtitle format
    
    Fixes bug #598936.