diff options
author | Bartolomé Sánchez Salado <aliaselbarto@gmail.com> | 2012-02-25 19:34:35 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-27 14:21:36 +0000 |
commit | 55d52165df003d253d813f3ea7085f4d89fdb3ce (patch) | |
tree | c30eebd61c1d18aa6fc238c9c5036fb4993840f0 | |
parent | 739252d04397a4fcf3f044de86e3bfaec0084c4d (diff) |
Removed unused code.
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.cxx | 26 | ||||
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.hxx | 3 | ||||
-rw-r--r-- | avmedia/source/quicktime/player.hxx | 3 | ||||
-rw-r--r-- | avmedia/source/quicktime/player.mm | 34 | ||||
-rw-r--r-- | avmedia/source/win/player.cxx | 31 | ||||
-rw-r--r-- | avmedia/source/win/player.hxx | 3 | ||||
-rw-r--r-- | offapi/com/sun/star/media/XPlayer.idl | 20 |
7 files changed, 0 insertions, 120 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index fa1dcbdcadf9..ee5496545ed9 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -396,32 +396,6 @@ double SAL_CALL Player::getMediaTime( ) // ------------------------------------------------------------------------------ -void SAL_CALL Player::setStopTime( double /*fTime*/ ) - throw (uno::RuntimeException) -{ - // TODO implement -} - -// ------------------------------------------------------------------------------ - -double SAL_CALL Player::getStopTime( ) - throw (uno::RuntimeException) -{ - // Get the time at which to stop - - return 0; -} - -// ------------------------------------------------------------------------------ - -void SAL_CALL Player::setRate( double /*fRate*/ ) - throw (uno::RuntimeException) -{ - // TODO set the window rate -} - -// ------------------------------------------------------------------------------ - double SAL_CALL Player::getRate( ) throw (uno::RuntimeException) { diff --git a/avmedia/source/gstreamer/gstplayer.hxx b/avmedia/source/gstreamer/gstplayer.hxx index 0e04d67d7f91..b5d7d8365def 100644 --- a/avmedia/source/gstreamer/gstplayer.hxx +++ b/avmedia/source/gstreamer/gstplayer.hxx @@ -62,9 +62,6 @@ public: virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setStopTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); - virtual double SAL_CALL getStopTime( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setRate( double fRate ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException); diff --git a/avmedia/source/quicktime/player.hxx b/avmedia/source/quicktime/player.hxx index da9bbfc8ec8b..ec795fd5b5de 100644 --- a/avmedia/source/quicktime/player.hxx +++ b/avmedia/source/quicktime/player.hxx @@ -59,9 +59,6 @@ public: virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setStopTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); - virtual double SAL_CALL getStopTime( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setRate( double fRate ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException); diff --git a/avmedia/source/quicktime/player.mm b/avmedia/source/quicktime/player.mm index e4550a0f8d28..15c39e9f717c 100644 --- a/avmedia/source/quicktime/player.mm +++ b/avmedia/source/quicktime/player.mm @@ -226,40 +226,6 @@ double SAL_CALL Player::getMediaTime( ) // ------------------------------------------------------------------------------ -void SAL_CALL Player::setStopTime( double fTime ) - throw (uno::RuntimeException) -{ - OSL_TRACE ("Player::setStopTime %f", fTime); - - mnStopTime = fTime; -} - -// ------------------------------------------------------------------------------ - -double SAL_CALL Player::getStopTime( ) - throw (uno::RuntimeException) -{ - double fRet = mnStopTime; - - return fRet; -} - -// ------------------------------------------------------------------------------ - -void SAL_CALL Player::setRate( double fRate ) - throw (uno::RuntimeException) -{ - OSL_TRACE ("Player::setRate"); - - // Quicktime: 0 = stop, 1 = normal speed, 2 = double speed, -1 = normal speed backwards - if ( mpMovie ) - { - [mpMovie setRate: fRate]; - } -} - -// ------------------------------------------------------------------------------ - double SAL_CALL Player::getRate( ) throw (uno::RuntimeException) { diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx index c2dea25f22c0..338db97a0810 100644 --- a/avmedia/source/win/player.cxx +++ b/avmedia/source/win/player.cxx @@ -305,37 +305,6 @@ double SAL_CALL Player::getMediaTime( ) // ------------------------------------------------------------------------------ -void SAL_CALL Player::setStopTime( double fTime ) - throw (uno::RuntimeException) -{ - if( mpMP ) - mpMP->put_StopTime( fTime ); -} - -// ------------------------------------------------------------------------------ - -double SAL_CALL Player::getStopTime( ) - throw (uno::RuntimeException) -{ - REFTIME aRefTime( 0.0 ); - - if( mpMP ) - mpMP->get_StopTime( &aRefTime ); - - return aRefTime; -} - -// ------------------------------------------------------------------------------ - -void SAL_CALL Player::setRate( double fRate ) - throw (uno::RuntimeException) -{ - if( mpMP ) - mpMP->put_Rate( fRate ); -} - -// ------------------------------------------------------------------------------ - double SAL_CALL Player::getRate( ) throw (uno::RuntimeException) { diff --git a/avmedia/source/win/player.hxx b/avmedia/source/win/player.hxx index 7f87511209bd..debdeccee69f 100644 --- a/avmedia/source/win/player.hxx +++ b/avmedia/source/win/player.hxx @@ -75,9 +75,6 @@ public: virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setStopTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); - virtual double SAL_CALL getStopTime( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setRate( double fRate ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException); diff --git a/offapi/com/sun/star/media/XPlayer.idl b/offapi/com/sun/star/media/XPlayer.idl index 059a4c9f4104..121b8004fd0f 100644 --- a/offapi/com/sun/star/media/XPlayer.idl +++ b/offapi/com/sun/star/media/XPlayer.idl @@ -77,26 +77,6 @@ interface XPlayer */ double getMediaTime(); - /** sets the time at which to stop reading the stream. - - @param fTime - the time at which to stop reading the stream in seconds - */ - void setStopTime( [in] double fTime ); - - /** gets the time at which the stream will stop. The result - is not guaranteed if no stop time has been set. - */ - double getStopTime(); - - /** sets the speed of the stream reading relatively to the normal - speed. - - @param fRate - the stream reading rate. <code>1.0</code> means normal speed. - */ - void setRate( [in] double fRate ); - /** gets the speed of the stream reading relatively to the normal reading. |