=== modified file 'openshot/windows/ClipProperties.py' --- openshot/windows/ClipProperties.py 2010-01-04 10:03:28 +0000 +++ openshot/windows/ClipProperties.py 2010-01-07 20:35:34 +0000 @@ -115,6 +117,7 @@ self.OSTreeEffects = TreeEffects.OpenShotTree(self.treeEffects, self.project) self.update_effects_tree() + self.prev_position = self.form.MyVideo.p.position() # Refresh XML self.RefreshPreview() @@ -817,6 +822,9 @@ # clear the clip object self.current_clip = None + #set the video position based on what it was before the xml refresh + self.form.MyVideo.p.seek(self.prev_position) + # close the window self.close_window() === modified file 'openshot/windows/MainGTK.py' --- openshot/windows/MainGTK.py 2010-01-02 23:02:45 +0000 +++ openshot/windows/MainGTK.py 2010-01-07 20:47:17 +0000 @@ -1179,9 +1180,15 @@ # get correct gettext method _ = self._ + # Refresh the MLT XML file + # and store the current position + prev_position = self.MyVideo.p.position() + self.project.RefreshXML() + self.MyVideo.p.seek(prev_position) + # get the current speed current_speed = self.MyVideo.p.get_speed() position = self.MyVideo.p.position() @@ -1219,9 +1226,15 @@ # get correct gettext method _ = self._ + # Refresh the MLT XML file + # and store the current position + prev_position = self.MyVideo.p.position() + self.project.RefreshXML() + self.MyVideo.p.seek(prev_position) + # get the current speed current_speed = self.MyVideo.p.get_speed() position = self.MyVideo.p.position()