You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Migrating tr1 to std, adding C++11 support to build scripts, fixing crash in FFmpegReader (caused by shared_ptr, buffer, and last_video_frame corruption). Much improved stability with this change. Thanks to Craig and Peter for the help!
This commit is contained in:
@@ -78,7 +78,7 @@ void DummyReader::Open() throw(InvalidFile)
|
||||
if (!is_open)
|
||||
{
|
||||
// Create or get frame object
|
||||
image_frame = tr1::shared_ptr<Frame>(new Frame(1, info.width, info.height, "#000000", info.sample_rate, info.channels));
|
||||
image_frame = std::make_shared<Frame>(1, info.width, info.height, "#000000", info.sample_rate, info.channels);
|
||||
|
||||
// Mark as "open"
|
||||
is_open = true;
|
||||
@@ -97,7 +97,7 @@ void DummyReader::Close()
|
||||
}
|
||||
|
||||
// Get an openshot::Frame object for a specific frame number of this reader.
|
||||
tr1::shared_ptr<Frame> DummyReader::GetFrame(long int requested_frame) throw(ReaderClosed)
|
||||
std::shared_ptr<Frame> DummyReader::GetFrame(long int requested_frame) throw(ReaderClosed)
|
||||
{
|
||||
// Check for open reader (or throw exception)
|
||||
if (!is_open)
|
||||
|
||||
Reference in New Issue
Block a user