From 90bb3a7371518c42ff76e49aef9f4964ad2b1e8e Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 6 Dec 2012 17:18:32 +0000 Subject: [PATCH] * morituri/common/encode.py: Collect all tags by replacing from newer tag messages. Gets more than bitrate from flacs now. --- ChangeLog | 6 ++++++ morituri/common/encode.py | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7ec0402..02a046b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-12-06 Thomas Vander Stichele + + * morituri/common/encode.py: + Collect all tags by replacing from newer tag messages. + Gets more than bitrate from flacs now. + 2012-12-06 Thomas Vander Stichele * morituri/rip/debug.py: diff --git a/morituri/common/encode.py b/morituri/common/encode.py index 5b0967a..fe29bf2 100644 --- a/morituri/common/encode.py +++ b/morituri/common/encode.py @@ -331,7 +331,12 @@ class TagReadTask(ctask.GstPipelineTask): def bus_tag_cb(self, bus, message): taglist = message.parse_tag() - self.taglist = taglist + self.debug('tag_cb, %d tags' % len(taglist.keys())) + if not self.taglist: + self.taglist = taglist + else: + import gst + self.taglist = self.taglist.merge(taglist, gst.TAG_MERGE_REPLACE) class TagWriteTask(ctask.LoggableTask):