pitivi r1179 - in branches/SOC_2008_BLEWIS: . pitivi/elements pitivi/ui



Author: edwardrv
Date: Thu Jul 17 09:15:13 2008
New Revision: 1179
URL: http://svn.gnome.org/viewvc/pitivi?rev=1179&view=rev

Log:
* pitivi/elements/singledecodebin.py:
Set elements to READY before trying to link to them, this allows them
to initialize.
* pitivi/ui/timeline.py:
Whitespace fix.


Modified:
   branches/SOC_2008_BLEWIS/ChangeLog
   branches/SOC_2008_BLEWIS/pitivi/elements/singledecodebin.py
   branches/SOC_2008_BLEWIS/pitivi/ui/timeline.py

Modified: branches/SOC_2008_BLEWIS/pitivi/elements/singledecodebin.py
==============================================================================
--- branches/SOC_2008_BLEWIS/pitivi/elements/singledecodebin.py	(original)
+++ branches/SOC_2008_BLEWIS/pitivi/elements/singledecodebin.py	Thu Jul 17 09:15:13 2008
@@ -178,6 +178,7 @@
                 continue
 
             self.add(element)
+            element.set_state(gst.STATE_READY)
             try:
                 pad.link(sinkpad)
             except:

Modified: branches/SOC_2008_BLEWIS/pitivi/ui/timeline.py
==============================================================================
--- branches/SOC_2008_BLEWIS/pitivi/ui/timeline.py	(original)
+++ branches/SOC_2008_BLEWIS/pitivi/ui/timeline.py	Thu Jul 17 09:15:13 2008
@@ -101,7 +101,7 @@
             audiobrother = TimelineBlankSource(factory=filefactory,
                 media_type=MEDIA_TYPE_AUDIO, name=filefactory.name)
             source.setBrother(audiobrother)
-        
+
         timeline = instance.PiTiVi.current.timeline
         if pos_ == -1:
             timeline.videocomp.appendSource(source)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]