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 505823 - [matroskademux] language tags have wrong iso code
[matroskademux] language tags have wrong iso code
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.18
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-27 00:03 UTC by Thijs Vermeir
Modified: 2009-12-13 12:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Thijs Vermeir 2007-12-27 00:03:58 UTC
matroskademux puts the language code from the matroska file in the tag. But the matroska files use ISO 639-2 and the language tag [1] must be in ISO 639-1.

Can't we use ISO 639-2 or ISO 639-3 in GStreamer ?

[1] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstTagList.html#GST-TAG-LANGUAGE-CODE:CAPS
Comment 1 Tim-Philipp Müller 2007-12-27 05:01:12 UTC
FWIW, in practice, either (-1 or -2) is fine and used for this tag (or even a language name string). Applications have to just deal with it currently.
Comment 2 Tim-Philipp Müller 2009-12-13 12:53:07 UTC
commit b66f9145862b7f2a3f89b5745692306061907e07
Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
Date:   Sun Dec 13 12:45:22 2009 +0000

    matroska: fix language code writing and extraction
    
    Matroska uses three-letter ISO 639-2B codes, but GST_TAG_LANGUAGE is
    supposed to contain two-letter ISO 639-1 codes, so use new language
    code mapping functions in -base to convert between those two as
    needed.
    
    Fixes #505823.