Permalink
Browse files

Fix issue #1, doc updates, allow running from dev env easily

  • Loading branch information...
1 parent 369929f commit 6f29c10b70544544aa223c5e217d37266d97a559 @danielgtaylor committed Nov 1, 2011
Showing with 16 additions and 4 deletions.
  1. +8 −3 README.rst
  2. +3 −0 bin/qtfaststart
  3. +5 −1 qtfaststart/processor.py
View
@@ -41,13 +41,18 @@ may need root access (via ``sudo`` or ``su``).
Usage
-----
-See ``qt-faststart.py --help`` for more info! If outfile is not present then
+See ``qtfaststart --help`` for more info! If outfile is not present then
the infile is overwritten.
- $ qtfaststart.py infile [outfile]
+ $ qtfaststart infile [outfile]
+
+To run without installing you can use::
+
+ $ bin/qtfaststart infile [outfile]
History
-------
+ * 2011-11-01: Fix long-standing os.SEEK_CUR bug, version bump to 1.6
* 2011-10-11: Packaged and published to PyPi by Greg Taylor
<gtaylor AT duointeractive DOT com>, version bump to 1.5.
* 2010-02-21: Add support for final mdat atom with zero size, patch by
@@ -61,7 +66,7 @@ History
License
-------
-Copyright (C) 2008 - 2009 Daniel G. Taylor <dan@programmer-art.org>
+Copyright (C) 2008 - 2011 Daniel G. Taylor <dan@programmer-art.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
View
@@ -13,6 +13,9 @@ import shutil
import sys
import tempfile
+# Add parent directory to sys.path so that running from dev environment works
+sys.path.append(os.path.dirname(os.path.dirname((os.path.abspath(__file__)))))
+
from optparse import OptionParser
from qtfaststart import VERSION
from qtfaststart import processor
View
@@ -15,6 +15,10 @@
log = logging.getLogger("qtfaststart")
+# Older versions of Python require this to be defined
+if not hasattr(os, 'SEEK_CUR'):
+ os.SEEK_CUR = 1
+
def read_atom(datastream):
"""
Read an atom and return a tuple of (size, type) where size is the size
@@ -204,4 +208,4 @@ def process(infilename, outfilename, limit=0):
written += (size % CHUNK_SIZE)
if limit and written >= limit:
# A limit was set and we've just passed it, stop writing!
- break
+ break

0 comments on commit 6f29c10

Please sign in to comment.