Skip to content

Commit

Permalink
change code
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanchez87 committed Dec 11, 2023
1 parent 4e07880 commit 92d66c7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions fluster/decoders/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,17 @@ def parse_videocodectestsink_md5sum(self, data: List[str], verbose: bool) -> str
if sum_start <= 0:
# Skip to the next iteration if sum_start is less than or equal to 0
continue
sum_start += len(pattern)
sum_end = line[sum_start:].find(";")
if sum_end <= 0:
# Skip to the next iteration if sum_end is less than or equal to 0
continue
sum_end += sum_start
md5sum = line[sum_start:sum_end]
if not verbose:
print(md5sum)
else:
sum_start += len(pattern)
sum_end = line[sum_start:].find(";")
if sum_end <= 0:
# Skip to the next iteration if sum_end is less than or equal to 0
continue
else:
sum_end += sum_start
md5sum = line[sum_start:sum_end]
if not verbose:
return md5sum

if not md5sum:
raise Exception("No MD5 found in the program trace.")
Expand Down

0 comments on commit 92d66c7

Please sign in to comment.