Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 4, 2024
1 parent 72a2e53 commit ecb7d9f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/libs/fades.liq
Original file line number Diff line number Diff line change
Expand Up @@ -514,16 +514,19 @@ end
# @param ~deduplicate Crossfade transitions can generate duplicate metadata. When `true`, the operator \
# removes duplicate metadata from the returned source.
def replaces cross(%argsof(cross), ~deduplicate=true, transition, s) =
log(
level=1,
"cross here, deduplicate: #{deduplicate}"
)
if
not deduplicate
then
cross(%argsof(cross), transition, s)
else
s = cross(%argsof(cross[!id]), transition, s)
def replaces s =
metadata.deduplicate(s)
end
s
dedup = metadata.deduplicate(s)

dedup.{buffered=s.buffered, cross_duration=s.cross_duration}
end
end

Expand Down

0 comments on commit ecb7d9f

Please sign in to comment.