[transmageddon] Fix handling of language tags
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Fix handling of language tags
- Date: Wed, 16 Apr 2014 09:32:49 +0000 (UTC)
commit c03e9af318d41bbd8df055a184651f4aa08e0286
Author: Christian Fredrik Kalager Schaller <uraeus linuxrising org>
Date: Wed Apr 16 11:32:17 2014 +0200
Fix handling of language tags
src/transcoder_engine.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 0511db8..fa0a4b2 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -424,8 +424,9 @@ class Transcoder(GObject.GObject):
#if Gst.ElementFactory.list_is_type(factory, 1125899906842626): # Audio Encoders factory code
#print("is audio encoder")
#taglist=Gst.TagList.new_empty()
- if self.audiodata[0]['languagecode'] != None:
+ if self.audiodata[0]['languagecode'] != False:
taglistbob.add_value(Gst.TagMergeMode.APPEND, Gst.TAG_LANGUAGE_CODE,
self.audiodata[0]['languagecode']) # FIXME: Currently only doing 1 stream
+ if self.audiodata[0]['language'] != False:
taglistbob.add_value(Gst.TagMergeMode.APPEND, Gst.TAG_LANGUAGE_NAME,
self.audiodata[0]['language'])
#longname=factory.get_metadata('long-name')
#taglist.add_value(Gst.TagMergeMode.APPEND, Gst.TAG_ENCODER, longname)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]