diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-19 10:26:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-19 12:53:42 +0200 |
commit | 3d8400a8d938be7b116298d6a79bb49d7cc0cc99 (patch) | |
tree | c1ae099e540025c1dfa7e6d62f6f6d9e5ce90c12 /avmedia | |
parent | 2e51afc77c0800dda6c09bb645d8962ae125b2ba (diff) |
loplugin:comparisonwithconstant in accessibility..basegfx
re-running this plugin on these modules now that sberg has improved
the plugin.
Change-Id: I1818b1fa540cf62b81219a4f3ed2dcae8ff0e838
Reviewed-on: https://gerrit.libreoffice.org/37805
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.cxx | 2 | ||||
-rw-r--r-- | avmedia/source/viewer/mediawindow_impl.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index 5b7559bf74d4..bc2d7493071d 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -688,7 +688,7 @@ void SAL_CALL Player::start() ::osl::MutexGuard aGuard(m_aMutex); // set the pipeline state to READY and run the loop - if( mbInitialized && nullptr != mpPlaybin ) + if( mbInitialized && mpPlaybin != nullptr ) { gst_element_set_state( mpPlaybin, GST_STATE_PLAYING ); mbPlayPending = true; diff --git a/avmedia/source/viewer/mediawindow_impl.cxx b/avmedia/source/viewer/mediawindow_impl.cxx index 172e4a3610ab..62c2d976801f 100644 --- a/avmedia/source/viewer/mediawindow_impl.cxx +++ b/avmedia/source/viewer/mediawindow_impl.cxx @@ -331,7 +331,7 @@ void MediaWindowImpl::updateMediaItem( MediaItem& rItem ) const if( isPlaying() ) rItem.setState( MediaState::Play ); else - rItem.setState( ( 0.0 == getMediaTime() ) ? MediaState::Stop : MediaState::Pause ); + rItem.setState( ( getMediaTime() == 0.0 ) ? MediaState::Stop : MediaState::Pause ); rItem.setDuration( getDuration() ); rItem.setTime( getMediaTime() ); |