summaryrefslogtreecommitdiff
path: root/capture-pipeline
diff options
context:
space:
mode:
authorPaul Kocialkowski2022-10-28 17:37:01 +0200
committerPaul Kocialkowski2022-10-28 17:58:43 +0200
commitc85a43fd55893480f50fbf7a5f61975bdf19edaa (patch)
treed1ba68b432f7ddfb9681467825b4a9501f25cc70 /capture-pipeline
parent6fe952a0e63035d5ab2e5e775aafb32d775caf14 (diff)
capture-pipeline: Remove useless check/assignation
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'capture-pipeline')
-rwxr-xr-xcapture-pipeline16
1 files changed, 6 insertions, 10 deletions
diff --git a/capture-pipeline b/capture-pipeline
index bda7bea..5a2356b 100755
--- a/capture-pipeline
+++ b/capture-pipeline
@@ -458,17 +458,11 @@ def video_process(sequence, shot, take, part):
# media
-def media_register(sequence, shot, take, part = None):
- if not part:
- part = {}
-
+def media_register(sequence, shot, take, part):
audio_register(sequence, shot, take, part)
video_register(sequence, shot, take, part)
-def media_process(sequence, shot, take, part = None):
- if not part:
- part = {}
-
+def media_process(sequence, shot, take, part):
audio_process(sequence, shot, take, part)
video_process(sequence, shot, take, part)
@@ -479,7 +473,8 @@ def take_register(sequence, shot, take):
for part in take["parts"]:
media_register(sequence, shot, take, part)
else:
- media_register(sequence, shot, take)
+ part = {}
+ media_register(sequence, shot, take, part)
def take_process(sequence, shot, take):
print(" - source: " + video_source_name(sequence, shot, take))
@@ -490,7 +485,8 @@ def take_process(sequence, shot, take):
media_process(sequence, shot, take, part)
else:
print(" - output: " + video_output_name(sequence, shot, take))
- media_process(sequence, shot, take)
+ part = {}
+ media_process(sequence, shot, take, part)
# shot