[vlc-commits] cppcx: Media: Add move constructor
Hugo Beauzée-Luyssen
git at videolan.org
Tue May 12 19:09:40 CEST 2015
libvlcpp | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue May 12 19:09:01 2015 +0200| [e4cafb864f891394bb87a0080c186a03abc771d1] | committer: Hugo Beauzée-Luyssen
cppcx: Media: Add move constructor
> http://git.videolan.org/gitweb.cgi/libvlcpp.git/?a=commit;h=e4cafb864f891394bb87a0080c186a03abc771d1
---
cppcx/MediaCX.cpp | 5 +++++
cppcx/MediaCX.hpp | 1 +
2 files changed, 6 insertions(+)
diff --git a/cppcx/MediaCX.cpp b/cppcx/MediaCX.cpp
index 300ee44..056d57b 100644
--- a/cppcx/MediaCX.cpp
+++ b/cppcx/MediaCX.cpp
@@ -112,6 +112,11 @@ namespace libVLCX
{
}
+ Media::Media(VLC::Media&& media)
+ : m_media( std::move( media ) )
+ {
+ }
+
} // namespace VLC
diff --git a/cppcx/MediaCX.hpp b/cppcx/MediaCX.hpp
index c0444fc..f3cc4c6 100644
--- a/cppcx/MediaCX.hpp
+++ b/cppcx/MediaCX.hpp
@@ -271,6 +271,7 @@ namespace libVLCX
internal:
Media(const VLC::Media& media);
+ Media(VLC::Media&& media);
VLC::Media m_media;
private:
More information about the vlc-commits
mailing list