avmedia/source/gstreamer/gstplayer.cxx | 2 -- svx/source/sidebar/media/MediaPlaybackPanel.cxx | 1 - 2 files changed, 3 deletions(-)
New commits: commit 5989ffe70942af036974b70c9e0ecd67978c6cc6 Author: Martin van Zijl <martin.vanz...@gmail.com> AuthorDate: Wed Jul 1 07:42:29 2020 +1200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Sep 8 08:27:13 2020 +0200 tdf#34759 fix media player pausing when pressing time slider Change-Id: I196549f168d67895510a239640c492cfc421fb07 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97644 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index 9511be54b5ae..932e1dd1c6e1 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -684,8 +684,6 @@ void SAL_CALL Player::setMediaTime( double fTime ) GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, gst_position, GST_SEEK_TYPE_NONE, 0 ); - if( !isPlaying() ) - gst_element_set_state( mpPlaybin, GST_STATE_PAUSED ); SAL_INFO( "avmedia.gstreamer", AVVERSION "seek to: " << gst_position << " ns original: " << fTime << " s" ); } diff --git a/svx/source/sidebar/media/MediaPlaybackPanel.cxx b/svx/source/sidebar/media/MediaPlaybackPanel.cxx index b62eb3292b91..2b2cd5d10ab8 100644 --- a/svx/source/sidebar/media/MediaPlaybackPanel.cxx +++ b/svx/source/sidebar/media/MediaPlaybackPanel.cxx @@ -133,7 +133,6 @@ IMPL_LINK_NOARG( MediaPlaybackPanel, VolumeSlideHdl, weld::Scale&, void) IMPL_LINK_NOARG( MediaPlaybackPanel, SeekHdl, weld::Scale&, void) { MediaItem aItem(SID_AVMEDIA_TOOLBOX); - aItem.setState( MediaState::Pause ); double nTime = 0; if (mpMediaItem) nTime = mxTimeSlider->get_value() * mpMediaItem->getDuration() / AVMEDIA_TIME_RANGE; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits