fixed crash if no audio devices were found

This commit is contained in:
Olive Team
2018-12-04 22:41:03 +11:00
parent 6f5cab5f86
commit cdd4ed41e1
4 changed files with 20 additions and 9 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ GLuint ViewerWidget::compose_sequence(QVector<Clip*>& nests, bool render_audio)
case MEDIA_TYPE_FOOTAGE:
{
Media* m = static_cast<Media*>(c->media);
if (!m->invalid) {
if (!m->invalid && !(c->track >= 0 && !is_audio_device_set())) {
if (m->ready) {
MediaStream* ms = m->get_stream_from_file_index(c->track < 0, c->media_stream);
if (ms != NULL && is_clip_active(c, playhead)) {