From c85a43fd55893480f50fbf7a5f61975bdf19edaa Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Fri, 28 Oct 2022 17:37:01 +0200 Subject: capture-pipeline: Remove useless check/assignation Signed-off-by: Paul Kocialkowski --- capture-pipeline | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'capture-pipeline') 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 -- cgit v1.2.3