Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip waveform generation if no audio track #4142

Merged
merged 1 commit into from
May 22, 2020
Merged

Conversation

phuongdh
Copy link
Member

Co-authored-by: cjcolvar cjcolvar@indiana.edu

Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I may have given bad advice. Looking at this again, we need to handle the case when a master file doesn't have any derivatives. Using master_file.derivatives.any?(&:audio_codec) would handle this case and might be nicer than using the safe navigator: master_file.derivatives.first&.audio_codec.present?. A test should probably be added for this case.

@phuongdh phuongdh force-pushed the waveform-no-audio branch from 3f00dea to 3f0b276 Compare May 22, 2020 18:08
Co-authored-by: cjcolvar <cjcolvar@indiana.edu>
@phuongdh phuongdh force-pushed the waveform-no-audio branch from 3f0b276 to efc41d6 Compare May 22, 2020 18:11
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks great!

@cjcolvar cjcolvar merged commit 8a3b34b into develop May 22, 2020
@cjcolvar cjcolvar deleted the waveform-no-audio branch May 22, 2020 21:03
@joncameron joncameron mentioned this pull request Jun 9, 2020
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants