Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/modules/avformat/consumer_avformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,11 +576,11 @@ static int consumer_start(mlt_consumer consumer)
// Assign the thread to properties
mlt_properties_set_data(properties, "thread", thread, sizeof(pthread_t), free, NULL);

// Set the running state before the thread checks it
mlt_properties_set_int(properties, "running", 1);

// Create the thread
pthread_create(thread, NULL, consumer_thread, consumer);

// Set the running state
mlt_properties_set_int(properties, "running", 1);
}
return error;
}
Expand Down
Loading