summaryrefslogtreecommitdiff
path: root/include/avmedia
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-14 10:31:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-14 13:50:35 +0100
commit21292d2bdc669ed379185c1e324727071cffc082 (patch)
treebb5fb92cf94167075e5668a33989ed4b6a183afd /include/avmedia
parente37b9b21edccf2750816c18103b5b39d42779fac (diff)
Related: tdf#100007 pause state not always updating "play" state to off
if I press pause then the UI gets stuck with both pause and stop pressed in, the check against time here seems insufficient so change merge and the setters to return true if there was a real change and use that as the guard to update the UI Change-Id: I550624fa3dcd5655d715a1f965bba9345b25ded7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129906 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/avmedia')
-rw-r--r--include/avmedia/mediaitem.hxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/avmedia/mediaitem.hxx b/include/avmedia/mediaitem.hxx
index a19c2319315b..ab9418607cb7 100644
--- a/include/avmedia/mediaitem.hxx
+++ b/include/avmedia/mediaitem.hxx
@@ -85,39 +85,39 @@ public:
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
- void merge( const MediaItem& rMediaItem );
+ bool merge(const MediaItem& rMediaItem);
AVMediaSetMask getMaskSet() const;
- void setState( MediaState eState );
+ bool setState(MediaState eState);
MediaState getState() const;
- void setDuration( double fDuration );
+ bool setDuration(double fDuration);
double getDuration() const;
- void setTime( double fTime );
+ bool setTime(double fTime);
double getTime() const;
- void setLoop( bool bLoop );
+ bool setLoop(bool bLoop);
bool isLoop() const;
- void setMute( bool bMute );
+ bool setMute(bool bMute);
bool isMute() const;
- void setVolumeDB( sal_Int16 nDB );
+ bool setVolumeDB(sal_Int16 nDB);
sal_Int16 getVolumeDB() const;
- void setZoom( ::css::media::ZoomLevel eZoom );
+ bool setZoom(css::media::ZoomLevel eZoom);
::css::media::ZoomLevel getZoom() const;
- void setURL( const OUString& rURL,
- const OUString& rTempURL,
- const OUString& rReferer);
+ bool setURL(const OUString& rURL,
+ const OUString& rTempURL,
+ const OUString& rReferer);
const OUString& getURL() const;
- void setMimeType( const OUString& rMimeType );
+ bool setMimeType(const OUString& rMimeType);
OUString getMimeType() const;
- void setGraphic(const Graphic& rGraphic);
+ bool setGraphic(const Graphic& rGraphic);
const Graphic & getGraphic() const;
const OUString& getTempURL() const;