Skip to content

Commit 626f78b

Browse files
committed
Fixing regression with opencv branch, and commented out lines we need
1 parent 395a8da commit 626f78b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/windows/region.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ def __init__(self, file=None, clip=None):
8585

8686
self.clip.Open()
8787

88-
# Set region clip start and end
88+
# Set region clip start and end
8989
self.clip.Start(clip.Start())
9090
self.clip.End(clip.End())
9191
self.clip.Id( get_app().project.generate_id() )
9292

9393
print("IDS {} {}".format(clip.Id(), self.clip.Id()))
9494

9595
# Keep track of file object
96-
# self.file = file
97-
# self.file_path = file.absolute_path()
96+
self.file = file
97+
self.file_path = file.absolute_path()
9898

9999
c_info = clip.Reader().info
100100
self.fps = c_info.fps.ToInt() #float(self.fps_num) / float(self.fps_den)
@@ -110,7 +110,7 @@ def __init__(self, file=None, clip=None):
110110
# Apply effects to region frames
111111
for effect in clip.Effects():
112112
self.clip.AddEffect(effect)
113-
113+
114114
# Open video file with Reader
115115
log.info(self.clip.Reader())
116116

@@ -129,7 +129,7 @@ def __init__(self, file=None, clip=None):
129129

130130
try:
131131
# Add clip for current preview file
132-
# self.clip = openshot.Clip(self.file_path)
132+
self.clip = openshot.Clip(self.file_path)
133133

134134
# Show waveform for audio files
135135
if not self.clip.Reader().info.has_video and self.clip.Reader().info.has_audio:

0 commit comments

Comments
 (0)