@ -147,8 +147,11 @@ VideoWindow::init()
}
# ifndef XINE_SAFE_MODE
# if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2) || \
( XINE_MAJOR_VERSION = = 1 & & XINE_MINOR_VERSION = = 2 & & XINE_SUB_VERSION < 10 )
debug ( ) < < " scope_plugin_new() \n " ;
m_scope = scope_plugin_new ( m_xine , m_audioPort ) ;
# endif
//FIXME this one seems to make seeking unstable for Codeine, perhaps
xine_set_param ( m_stream , XINE_PARAM_METRONOM_PREBUFFER , 6000 ) ; //less buffering, faster seeking..
@ -266,11 +269,14 @@ VideoWindow::load( const KURL &url )
// FIXME leaves one erroneous buffer
timerEvent ( 0 ) ;
# if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2) || \
( XINE_MAJOR_VERSION = = 1 & & XINE_MINOR_VERSION = = 2 & & XINE_SUB_VERSION < 10 )
if ( m_scope ) {
xine_post_out_t * source = xine_get_audio_source ( m_stream ) ;
xine_post_in_t * target = ( xine_post_in_t * ) xine_post_input ( m_scope , const_cast < char * > ( " audio in " ) ) ;
xine_post_wire ( source , target ) ;
}
# endif
# endif
announceStateChange ( ) ;
@ -572,6 +578,8 @@ VideoWindow::scope()
if ( xine_get_status ( m_stream ) ! = XINE_STATUS_PLAY )
return scope ;
# if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2) || \
( XINE_MAJOR_VERSION = = 1 & & XINE_MINOR_VERSION = = 2 & & XINE_SUB_VERSION < 10 )
//prune the buffer list and update the m_current_vpts timestamp
timerEvent ( 0 ) ;
@ -618,6 +626,7 @@ VideoWindow::scope()
m_current_vpts = best_node - > vpts_end ;
m_current_vpts + + ; //FIXME needs to be done for some reason, or you get situations where it uses same buffer again and again
}
# endif
return scope ;
}
@ -625,6 +634,8 @@ VideoWindow::scope()
void
VideoWindow : : timerEvent ( TQTimerEvent * )
{
# if XINE_MAJOR_VERSION < 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION < 2) || \
( XINE_MAJOR_VERSION = = 1 & & XINE_MINOR_VERSION = = 2 & & XINE_SUB_VERSION < 10 )
/// here we prune the buffer list regularly
# ifndef XINE_SAFE_MODE
MyNode * const first_node = myList - > next ;
@ -650,6 +661,7 @@ VideoWindow::timerEvent( TQTimerEvent* )
prev = node ;
}
# endif
# endif
}
void