Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2012-11-05 18:24:35 +0400
committerJoerg Mueller <nexyon@gmail.com>2012-11-05 18:24:35 +0400
commit5a8d5f77af84d3f790d749dfd2d76a3b487eb06a (patch)
tree22326dd7033689c8e33dd59a265874ca5249bf14 /intern/audaspace/ffmpeg/AUD_FFMPEGFactory.cpp
parent0f9559fe714b582039677de9dea5a3956dcdc4aa (diff)
Audaspace:
Replacing AUD_Reference with boost::shared_ptr.
Diffstat (limited to 'intern/audaspace/ffmpeg/AUD_FFMPEGFactory.cpp')
-rw-r--r--intern/audaspace/ffmpeg/AUD_FFMPEGFactory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/audaspace/ffmpeg/AUD_FFMPEGFactory.cpp b/intern/audaspace/ffmpeg/AUD_FFMPEGFactory.cpp
index c4c384f054c..403c367fccc 100644
--- a/intern/audaspace/ffmpeg/AUD_FFMPEGFactory.cpp
+++ b/intern/audaspace/ffmpeg/AUD_FFMPEGFactory.cpp
@@ -46,10 +46,10 @@ AUD_FFMPEGFactory::AUD_FFMPEGFactory(const data_t* buffer, int size) :
memcpy(m_buffer->getBuffer(), buffer, size);
}
-AUD_Reference<AUD_IReader> AUD_FFMPEGFactory::createReader()
+boost::shared_ptr<AUD_IReader> AUD_FFMPEGFactory::createReader()
{
- if(m_buffer.isNull())
- return new AUD_FFMPEGReader(m_filename);
+ if(m_buffer.get())
+ return boost::shared_ptr<AUD_IReader>(new AUD_FFMPEGReader(m_buffer));
else
- return new AUD_FFMPEGReader(m_buffer);
+ return boost::shared_ptr<AUD_IReader>(new AUD_FFMPEGReader(m_filename));
}