summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp11
-rwxr-xr-xdali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp11
2 files changed, 12 insertions, 10 deletions
diff --git a/dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp b/dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp
index 7e65731..aa464a8 100755
--- a/dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp
+++ b/dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp
@@ -401,12 +401,13 @@ void TizenVideoPlayer::Stop()
{
int error = player_stop( mPlayer );
LogPlayerError( error );
- }
- if( mNativeImageSourcePtr != NULL && mTimer )
- {
- mTimer.Stop();
- DestroyPackets();
+ if( mNativeImageSourcePtr != NULL && mTimer )
+ {
+ mTimer.Stop();
+ DestroyPackets();
+ }
+
}
}
diff --git a/dali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp b/dali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp
index ffcba37..f180d59 100755
--- a/dali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp
+++ b/dali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp
@@ -400,13 +400,14 @@ void TizenVideoPlayer::Stop()
{
int error = player_stop( mPlayer );
LogPlayerError( error );
- }
- if( mNativeImageSourcePtr != NULL && mTimer )
- {
- mTimer.Stop();
- DestroyPackets();
+ if( mNativeImageSourcePtr != NULL && mTimer )
+ {
+ mTimer.Stop();
+ DestroyPackets();
+ }
}
+
}
void TizenVideoPlayer::SetMute( bool muted )