[Libreoffice-commits] .: avmedia/source offapi/com
Michael Meeks
michael at kemper.freedesktop.org
Mon Feb 27 06:22:48 PST 2012
avmedia/source/gstreamer/gstplayer.cxx | 26 -------------------------
avmedia/source/gstreamer/gstplayer.hxx | 3 --
avmedia/source/quicktime/player.hxx | 3 --
avmedia/source/quicktime/player.mm | 34 ---------------------------------
avmedia/source/win/player.cxx | 31 ------------------------------
avmedia/source/win/player.hxx | 3 --
offapi/com/sun/star/media/XPlayer.idl | 20 -------------------
7 files changed, 120 deletions(-)
New commits:
commit 55d52165df003d253d813f3ea7085f4d89fdb3ce
Author: Bartolomé Sánchez Salado <aliaselbarto at gmail.com>
Date: Sat Feb 25 19:34:35 2012 +0100
Removed unused code.
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
index fa1dcbd..ee54965 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 0e04d67..b5d7d83 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 da9bbfc..ec795fd 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 e4550a0..15c39e9 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 c2dea25..338db97 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 7f87511..debdecc 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 059a4c9..121b800 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.
More information about the Libreoffice-commits
mailing list