* morituri/common/gstreamer.py:

Remove unused imports.
	* morituri/image/image.py:
	  Remove halfbaked code.
This commit is contained in:
Thomas Vander Stichele
2011-05-22 11:14:46 +00:00
parent b86cf68341
commit 965043dbf5
3 changed files with 7 additions and 46 deletions

View File

@@ -1,3 +1,10 @@
2011-05-22 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/gstreamer.py:
Remove unused imports.
* morituri/image/image.py:
Remove halfbaked code.
2011-05-22 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/rip/cd.py:

View File

@@ -20,10 +20,6 @@
# You should have received a copy of the GNU General Public License
# along with morituri. If not, see <http://www.gnu.org/licenses/>.
import os
import struct
import zlib
import gst
from morituri.common import common, task

View File

@@ -294,45 +294,3 @@ class ImageEncodeTask(task.MultiSeparateTask):
self.debug('encoding track %d', trackIndex + 1)
index = track.indexes[1]
add(index)
class ImageJoinTask(task.Task):
"""
I concatenate the decoded audio from all tracks into a single .wav
I can optionally offset the joint audio to compensate for a write offset.
"""
description = "Joining tracks"
def __init__(self, image, outfile):
self._image = image
cue = image.cue
self._tasks = []
self.lengths = {}
def add(index):
# here to avoid import gst eating our options
from morituri.common import encode
path = image.getRealPath(index.path)
assert type(path) is unicode, "%r is not unicode" % path
self.debug('schedule encode of %r', path)
root, ext = os.path.splitext(os.path.basename(path))
outpath = os.path.join(outdir, root + '.' + profile.extension)
self.debug('schedule encode to %r', outpath)
taskk = encode.EncodeTask(path, os.path.join(outdir,
root + '.' + profile.extension), profile)
self.addTask(taskk)
try:
htoa = cue.table.tracks[0].indexes[0]
self.debug('encoding htoa track')
add(htoa)
except (KeyError, IndexError):
self.debug('no htoa track')
pass
for trackIndex, track in enumerate(cue.table.tracks):
self.debug('encoding track %d', trackIndex + 1)
index = track.indexes[1]
add(index)