* morituri/common/encode.py:

Collect all tags by replacing from newer tag messages.
	  Gets more than bitrate from flacs now.
This commit is contained in:
Thomas Vander Stichele
2012-12-06 17:18:32 +00:00
parent 326caa84a8
commit 90bb3a7371
2 changed files with 12 additions and 1 deletions

View File

@@ -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):