int dest_width = frame->width;
int dest_height = frame->height;
#if !BUILDFLAG(IS_TIZEN_TV)
- if (target_rotation == 90 || target_rotation == 270)
+ if ((target_rotation == 90) || (target_rotation == 270))
std::swap(dest_height, dest_width);
#endif
videocaptureformat.frame_size = gfx::Size(dest_width, dest_height);
esplusplayer_state state = GetPlayerState();
is_paused_ = false;
- if (state < ESPLUSPLAYER_STATE_READY || !is_prepared_ || is_seeking_) {
+ if ((state < ESPLUSPLAYER_STATE_READY) || !is_prepared_ || is_seeking_) {
LOG(INFO) << "state : " << GetString(state)
<< " is_prepared : " << is_prepared_
<< " is_seeking : " << is_seeking_
if (state == ESPLUSPLAYER_STATE_READY)
error = esplusplayer_start(esplayer_);
- else if (state == ESPLUSPLAYER_STATE_PAUSED ||
- state == ESPLUSPLAYER_STATE_PLAYING)
+ else if ((state == ESPLUSPLAYER_STATE_PAUSED) ||
+ (state == ESPLUSPLAYER_STATE_PLAYING))
error = esplusplayer_resume(esplayer_);
if (error != ESPLUSPLAYER_ERROR_TYPE_NONE) {
return;
}
- if (GetPlayerState() < ESPLUSPLAYER_STATE_READY || !is_prepared_) {
+ if ((GetPlayerState() < ESPLUSPLAYER_STATE_READY) || !is_prepared_) {
// Prevent to set the same pending seek position and
// stop pushing again from 0sec when media starts 0.
if (time == pending_seek_position_) {
return false;
}
- if (status == ESPLUSPLAYER_SUBMIT_STATUS_NOT_PREPARED ||
- status == ESPLUSPLAYER_SUBMIT_STATUS_OUT_OF_MEMORY)
+ if ((status == ESPLUSPLAYER_SUBMIT_STATUS_NOT_PREPARED) ||
+ (status == ESPLUSPLAYER_SUBMIT_STATUS_OUT_OF_MEMORY))
return false;
UpdateBufferedDtsDifference();
LOG(INFO) << "OnReadyToPrepare : "
<< DemuxerStream::GetTypeName(GetDemuxerStreamType(stream_type));
- if (stream_type != ESPLUSPLAYER_STREAM_TYPE_AUDIO &&
- stream_type != ESPLUSPLAYER_STREAM_TYPE_VIDEO)
+ if ((stream_type != ESPLUSPLAYER_STREAM_TYPE_AUDIO) &&
+ (stream_type != ESPLUSPLAYER_STREAM_TYPE_VIDEO))
return;
DemuxerStream::Type type = GetDemuxerStreamType(stream_type);