diff options
author | flavio <fdanesse@gmail.com> | 2012-12-08 21:53:01 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2012-12-08 21:53:01 (GMT) |
commit | 1746f4e21c6720633683d3a1dbded945a5114094 (patch) | |
tree | c17ada8f3face9d01ba7311e6b0d98e29efa027f /glive.py | |
parent | 5175a36d9c00664a2ed7d865425efbc056f9e921 (diff) |
Fixmes and Container corrections.
Diffstat (limited to 'glive.py')
-rw-r--r-- | glive.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -27,6 +27,7 @@ gi.require_version('Gst', '1.0') from gi.repository import GdkPixbuf from gi.repository import GObject from gi.repository import Gst +from gi.repository import GstVideo from sugar3.activity.activity import get_bundle_path import logging @@ -402,10 +403,10 @@ class Glive: if self._audio_pixbuf: pixbuf_b64 = utils.getStringFromPixbuf(self._audio_pixbuf) - taglist[gst.TAG_EXTENDED_COMMENT] = "coverart=" + pixbuf_b64 + taglist[Gst.TAG_EXTENDED_COMMENT] = "coverart=" + pixbuf_b64 vorbis_enc = audioline.get_by_name('audioVorbisenc') - vorbis_enc.merge_tags(taglist, gst.TAG_MERGE_REPLACE_ALL) + vorbis_enc.merge_tags(taglist, Gst.TAG_MERGE_REPLACE_ALL) audioFilesink = audioline.get_by_name('audioFilesink') audioOggFilepath = os.path.join(Instance.instancePath, "output.ogg") @@ -637,12 +638,12 @@ class Glive: def _bus_message_handler(self, bus, message): t = message.type - if t == Gst.MESSAGE_EOS: + if t == Gst.MessageType.EOS: if self._eos_cb: cb = self._eos_cb self._eos_cb = None cb() - elif t == Gst.MESSAGE_ERROR: + elif t == Gst.MessageType.ERROR: #todo: if we come out of suspend/resume with errors, then get us back up and running... #todo: handle "No space left on the resource.gstfilesink.c" #err, debug = message.parse_error() |