[pitivi] Remove insanity from PictureFileSource._makeDefaultBin.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc: 
- Subject: [pitivi] Remove insanity from PictureFileSource._makeDefaultBin.
- Date: Wed, 12 Aug 2009 14:20:53 +0000 (UTC)
commit ab999f03fccb8a60bc25ffe09699abad3ba12bf6
Author: Alessandro Decina <alessandro d gmail com>
Date:   Tue Aug 11 18:50:36 2009 +0200
    Remove insanity from PictureFileSource._makeDefaultBin.
    
    Fixes a not-linked error dragging pictures from the sourcelist onto the viewer.
 pitivi/factories/file.py |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/pitivi/factories/file.py b/pitivi/factories/file.py
index 741b01b..675050e 100644
--- a/pitivi/factories/file.py
+++ b/pitivi/factories/file.py
@@ -66,15 +66,7 @@ class PictureFileSourceFactory(FileSourceFactory):
     ffscale_factory = 'ffvideoscale'
 
     def _makeDefaultBin(self):
-        # we override this so we always return a bin having
-        # bin.decodebin = <bin as returned by FileSourceFactory>
-        # this makes our _releaseBin simpler
-        bin = gst.Bin()
-        dbin = FileSourceFactory._makeDefaultBin(self)
-        bin.add(dbin)
-        bin.decodebin = dbin
-
-        return bin
+        return self._makeStreamBin(self.output_streams[0])
 
     def _makeStreamBin(self, output_stream):
         self.debug("making picture bin for %s", self.name)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]