~ubuntu-branches/ubuntu/trusty/pitivi/trusty

« back to all changes in this revision

Viewing changes to pitivi/factories/file.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-07-07 13:43:47 UTC
  • mto: (6.1.9 sid) (1.2.12)
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: james.westby@ubuntu.com-20110707134347-cari9kxjiakzej9z
Tags: upstream-0.14.1
ImportĀ upstreamĀ versionĀ 0.14.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
1
# PiTiVi , Non-linear video editor
3
2
#
4
3
#       :base.py
18
17
#
19
18
# You should have received a copy of the GNU Lesser General Public
20
19
# License along with this program; if not, write to the
21
 
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22
 
# Boston, MA 02111-1307, USA.
 
20
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 
21
# Boston, MA 02110-1301, USA.
23
22
 
24
23
import gst
25
24
import os
28
27
        SinkFactory
29
28
from pitivi.stream import MultimediaStream, AudioStream, VideoStream
30
29
 
 
30
 
31
31
class FileSourceFactory(RandomAccessSourceFactory):
32
32
    """
33
33
    Factory for local files.
41
41
        # FIXME: backward compatibility
42
42
        self.filename = uri
43
43
 
 
44
 
44
45
class PictureFileSourceFactory(FileSourceFactory):
45
46
    """
46
47
    Factory for image sources.
66
67
 
67
68
        return ret
68
69
 
 
70
 
69
71
class URISinkFactory(SinkFactory):
70
72
    """ A simple sink factory """
71
73