diff options
author | ka <kai.ahrens@sun.com> | 2010-07-07 20:39:52 +0200 |
---|---|---|
committer | ka <kai.ahrens@sun.com> | 2010-07-07 20:39:52 +0200 |
commit | 6a95ce1c7f61f5cd7684486937fc30f095ce2a29 (patch) | |
tree | 35d5615d35242da3c414c0897e2d596d523fbfe8 /avmedia | |
parent | 4e0e548c67ab51940bb9d079b723c10b0944777b (diff) |
avmedia102: try use gconfvideosink at preferred video sink
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/framework/mediacontrol.cxx | 4 | ||||
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.cxx | 54 |
2 files changed, 27 insertions, 31 deletions
diff --git a/avmedia/source/framework/mediacontrol.cxx b/avmedia/source/framework/mediacontrol.cxx index a71b5268abd7..2eb18cb164d9 100644 --- a/avmedia/source/framework/mediacontrol.cxx +++ b/avmedia/source/framework/mediacontrol.cxx @@ -91,8 +91,6 @@ MediaControl::MediaControl( Window* pParent, MediaControlStyle eControlStyle ) : if( MEDIACONTROLSTYLE_SINGLELINE != meControlStyle ) { - - maPlayToolBox.InsertItem( AVMEDIA_TOOLBOXITEM_OPEN, implGetImage( AVMEDIA_IMG_OPEN ), String( AVMEDIA_RESID( AVMEDIA_STR_OPEN ) ) ); maPlayToolBox.SetHelpId( AVMEDIA_TOOLBOXITEM_OPEN, HID_AVMEDIA_TOOLBOXITEM_OPEN ); @@ -103,8 +101,6 @@ MediaControl::MediaControl( Window* pParent, MediaControlStyle eControlStyle ) : } else { - maTimeSlider.SetBackground(); - maVolumeSlider.SetBackground(); mpZoomListBox->SetBackground(); maZoomToolBox.SetBackground(); diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index 71ac656a7b2c..f082cfc5c513 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -279,49 +279,50 @@ double SAL_CALL Player::getMediaTime() void SAL_CALL Player::setStopTime( double /* fTime */ ) throw( uno::RuntimeException ) { + OSL_TRACE( "GStreamer method avmedia::gst::Player::setStopTime needs to be implemented" ); + + /* Currently no need for implementation since higher levels of code don't use this method at all + !!! TODO: needs to be implemented if this functionality is needed at a later point of time if( implInitPlayer() ) { - // TBD!!! } + + */ } // ------------------------------------------------------------------------------ double SAL_CALL Player::getStopTime() throw( uno::RuntimeException ) { - double fRet = 0.0; - - if( implInitPlayer() ) - { - // TBD!!! - fRet = getDuration(); - } + /* + Currently no need for implementation since higher levels of code don't set a stop time ATM + !!! TODO: needs to be fully implemented if this functionality is needed at a later point of time + */ - return( fRet ); + return( getDuration() ); } // ------------------------------------------------------------------------------ void SAL_CALL Player::setRate( double /* fRate */ ) throw( uno::RuntimeException ) { - if( implInitPlayer() ) - { - // TBD!!! - } + OSL_TRACE( "GStreamer method avmedia::gst::Player::setRate needs to be implemented" ); + + /* Currently no need for implementation since higher levels of code don't use this method at all + !!! TODO: needs to be implemented if this functionality is needed at a later point of time + */ } // ------------------------------------------------------------------------------ double SAL_CALL Player::getRate() throw( uno::RuntimeException ) { - double fRet = 1.0; - - if( implInitPlayer() ) - { - // TBD!!!; - } + /* + Currently no need for implementation since higher levels of code don't set a different rate than 1 ATM + !!! TODO: needs to be fully implemented if this functionality is needed at a later point of time + */ - return( fRet ); + return( 1.0 ); } // ------------------------------------------------------------------------------ @@ -443,14 +444,13 @@ uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( } else { - GstElement* pVideoSink = gst_element_factory_make( "xvimagesink", NULL ); - - if( !pVideoSink ) - { - pVideoSink = gst_element_factory_make( "ximagesink", NULL ); - } + // try to use gconf user configurable video sink first + GstElement* pVideoSink = gst_element_factory_make( "gconfvideosink", NULL ); - if( pVideoSink ) + if( ( NULL != pVideoSink ) || + ( NULL != ( pVideoSink = gst_element_factory_make( "autovideosink", NULL ) ) ) || + ( NULL != ( pVideoSink = gst_element_factory_make( "xvimagesink", NULL ) ) ) || + ( NULL != ( pVideoSink = gst_element_factory_make( "ximagesink", NULL ) ) ) ) { GstState aOldState = GST_STATE_NULL; |