[pitivi] timeline: Preview only video clips trimming
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Preview only video clips trimming
- Date: Wed, 13 Jun 2018 15:19:42 +0000 (UTC)
commit 018773729d132503256c306e8106e41fec2b1be3
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri May 18 07:03:54 2018 +0200
timeline: Preview only video clips trimming
Fixes #2194
pitivi/utils/timeline.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/pitivi/utils/timeline.py b/pitivi/utils/timeline.py
index f6ab5da2..d17a124c 100644
--- a/pitivi/utils/timeline.py
+++ b/pitivi/utils/timeline.py
@@ -238,6 +238,8 @@ class EditingContext(GObject.Object, Loggable):
else:
self.focus = focus
+ self.with_video = GES.TrackType.VIDEO & self.focus.get_track_types()
+
self.old_position = self.focus.get_start()
if edge == GES.Edge.EDGE_END and mode == GES.EditMode.EDIT_TRIM:
self.old_position += self.focus.get_duration()
@@ -298,7 +300,7 @@ class EditingContext(GObject.Object, Loggable):
edge=self.edge.value_nick,
new_layer_priority=int(priority))
- if res and self.mode == GES.EditMode.EDIT_TRIM:
+ if res and self.mode == GES.EditMode.EDIT_TRIM and self.with_video:
if self.edge == GES.Edge.EDGE_START:
self.timeline.ui.app.gui.viewer.clipTrimPreview(self.focus, self.focus.props.in_point)
elif self.edge == GES.Edge.EDGE_END:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]