Kaydet (Commit) ce0ce241 authored tarafından Minh Ngo's avatar Minh Ngo

Fixing copying processes for wrapper components.

Change-Id: Iae3f30d5754c3efac01d66f9d0d567874e44602d
üst 1bb79815
...@@ -38,9 +38,7 @@ namespace VLC ...@@ -38,9 +38,7 @@ namespace VLC
Instance::Instance( const Instance& other ) Instance::Instance( const Instance& other )
{ {
libvlc_release( mInstance ); operator=(other);
mInstance = other.mInstance;
libvlc_retain( mInstance );
} }
const Instance& Instance::operator=( const Instance& other ) const Instance& Instance::operator=( const Instance& other )
......
...@@ -51,9 +51,8 @@ Media::Media( const rtl::OUString& url, Instance& instance ) ...@@ -51,9 +51,8 @@ Media::Media( const rtl::OUString& url, Instance& instance )
} }
Media::Media( const Media& other ) Media::Media( const Media& other )
: mMedia( other.mMedia )
{ {
libvlc_media_retain( mMedia ); operator=(other);
} }
const Media& Media::operator=( const Media& other ) const Media& Media::operator=( const Media& other )
......
...@@ -87,9 +87,8 @@ namespace VLC ...@@ -87,9 +87,8 @@ namespace VLC
} }
Player::Player( const Player& other ) Player::Player( const Player& other )
: mPlayer( other.mPlayer )
{ {
libvlc_media_player_retain( mPlayer ); operator=( other );
} }
const Player& Player::operator=( const Player& other ) const Player& Player::operator=( const Player& other )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment