You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed many bugs, including an audio crackle between packets, and fixed many multi-threading issues.
This commit is contained in:
@@ -354,23 +354,19 @@ bool Frame::IsAudioReady(bool has_audio)
|
||||
{
|
||||
if (has_audio)
|
||||
{
|
||||
if (number == 300)
|
||||
cout << "IsAudioReady channels: " << channels_complete.size() << endl;
|
||||
|
||||
// Do all channels have audio loaded?
|
||||
if (channels_complete.size() == channels)
|
||||
{
|
||||
// yes, all audio is loaded
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
// still waiting on some channel to be loaded
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// No audio needed for this frame
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Gets whether the frame has completed loading it's image and audio data
|
||||
|
||||
Reference in New Issue
Block a user