The updated patch should solve your problem. I realized that zoom 
setting might be important for some effects. The new patch just catches 
the exception if it occurs and the program flow resumes.
please remove the previous patch before applying this.

--- /usr/lib/pitivi/python/pitivi/ui/clipproperties.py
+++ clipproperties.py
@@ -609,7 +609,10 @@
          else:
              if self._current_tl_obj:
                  self._current_tl_obj = None
-                self.zoom_scale.set_value(1.0)
+                try:
+                    self.zoom_scale.set_value(1.0)
+                except:
+                    pass
                  self.app.gui.viewer.pipeline.flushSeekVideo()
              self.effect = None
              self.set_sensitive(False)


Regards
Experimenter

On Wednesday 16 January 2013 10:32 PM, Experimenter wrote:
> Excuse me for the mistake.. The patch is at line no 609 and not 162 of 
> the file
> change in the patch @ line 609 in 
> /usr/lib/pitivi/python/pitivi/ui/clipproperties.py
>
>   -                self.zoom_scale.set_value(1.0)
> +                #self.zoom_scale.set_value(1.0)
>
> I tried the patch on a different machine and it is working fine there 
> too.
>
> Regards
> Experimenter
>
> On Wednesday 16 January 2013 06:00 PM, Experimenter wrote:
>> I have not experienced any problems with the patch.
>> There is only 1 change in the patch @ line 162 in 
>> /usr/lib/pitivi/python/pitivi/ui/clipproperties.py
>>
>>   -                self.zoom_scale.set_value(1.0)
>>   +                #self.zoom_scale.set_value(1.0)
>>
>> kindly try adding the change manually.
>> also verify if you are using the ver 0.15.2-0ubuntu0.1 in 12.04 LTS
>>
>> Regards
>> Experimenter
>>
>> On Wednesday 16 January 2013 03:59 PM, Benjamin Kerensa wrote:
>>> Experimenter,
>>>
>>> Thanks for the patch I was testing it out and there were some errors
>>> with self.effect = None although it did ungroup the clips but for some
>>> reason that portion of your patch appears to cause some instability and
>>> requires a force quit.
>>>
>>> Have you had the same results with your patch?
>>>
>>
>


** Patch added: "updated_pitivi.patch"
   
https://bugs.launchpad.net/bugs/1100007/+attachment/3484975/+files/updated_pitivi.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pitivi in Ubuntu.
https://bugs.launchpad.net/bugs/1100007

Title:
  unable to separate video and audio by using "ungroup clips" button

Status in “pitivi” package in Ubuntu:
  New

Bug description:
  unable to separate video and audio by using "ungroup clips". On clicking 
"ungroup clips' button nothing happens
  ver 0.15.2-0ubuntu0.1 in 12.04 LTS

  Below is the traceback thrown on clicking ungroup clips
  Traceback (most recent call last):
    File "/usr/lib/pitivi/python/pitivi/ui/timeline.py", line 764, in 
ungroupSelected
      self.timeline.ungroupSelection()
    File "/usr/lib/pitivi/python/pitivi/timeline/timeline.py", line 1952, in 
ungroupSelection
      self.selection.setSelection(timeline_object.track_objects, UNSELECT)
    File "/usr/lib/pitivi/python/pitivi/timeline/timeline.py", line 527, in 
setSelection
      self.emit("selection-changed")
    File "/usr/lib/pitivi/python/pitivi/signalinterface.py", line 151, in emit
      *args, **kwargs)
    File "/usr/lib/pitivi/python/pitivi/signalinterface.py", line 126, in emit
      res = cb(*ar, **kw)
    File "/usr/lib/pitivi/python/pitivi/timeline/timeline.py", line 1548, in 
_selectionChanged
      self.emit("selection-changed")
    File "/usr/lib/pitivi/python/pitivi/signalinterface.py", line 151, in emit
      *args, **kwargs)
    File "/usr/lib/pitivi/python/pitivi/signalinterface.py", line 126, in emit
      res = cb(*ar, **kw)
    File "/usr/lib/pitivi/python/pitivi/ui/clipproperties.py", line 612, in 
_selectionChangedCb
      self.zoom_scale.set_value(1.0)
  AttributeError: 'TransformationProperties' object has no attribute 
'zoom_scale'

  A quick fix is attached as a patch that comments line 162 in
  /usr/lib/pitivi/python/pitivi/ui/clipproperties.py that tried to reset
  the zoom to 1. The patch does not adversely affect the program in any
  other way.

  --- /usr/lib/pitivi/python/pitivi/ui/clipproperties.py        2013-01-15 
22:48:51.230618469 +0530
  +++ clipproperties.py 2013-01-16 01:27:13.362470110 +0530
  @@ -609,7 +609,7 @@
           else:
               if self._current_tl_obj:
                   self._current_tl_obj = None
  -                self.zoom_scale.set_value(1.0)
  +                #self.zoom_scale.set_value(1.0)
                   self.app.gui.viewer.pipeline.flushSeekVideo()
               self.effect = None
               self.set_sensitive(False)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pitivi/+bug/1100007/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to