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 750975 - playbin subtitle-encoding ignored
playbin subtitle-encoding ignored
Status: RESOLVED DUPLICATE of bug 750785
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.5.1
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-15 07:25 UTC by Jan ONDREJ (SAL)
Modified: 2015-06-15 10:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jan ONDREJ (SAL) 2015-06-15 07:25:09 UTC
Playbins subtitle-encoding parameter is ignored in 1.5.1, worked well in older versions.

How to reproduce:
unset GST_SUBTITLE_ENCODING; export GST_SUBTITLE_ENCODING
gst-launch-1.0 playbin uri=file:///tmp/test.avi suburi=file:///tmp/test.srt subtitle-encoding=cp1250 

Subtitles are not ecoded properly.

Works well if I set GST_SUBTITLE_ENCODING=cp1250. Looks like evironment variable has priority even if not set.
Comment 1 Sebastian Dröge (slomo) 2015-06-15 08:31:23 UTC
Seems to work fine here, it uses the subtitle-encoding property value whenever set and only falls back to the environment variable if the property is NULL or "".

However it will ignore each of those if the subtitles look like valid UTF8, or it detects a unicode BOM at the very beginning.


Can you check in gstsubparse.c in convert_encoding() which code paths are taken and which values are used for the encoding there?
Comment 2 Sebastian Dröge (slomo) 2015-06-15 09:52:53 UTC
This might be related to bug #750785, which was fixed after 1.5.1 release.
Comment 3 Sebastian Dröge (slomo) 2015-06-15 10:40:01 UTC
Confirmed to be a dup of bug #750785

*** This bug has been marked as a duplicate of bug 750785 ***