author | alwin <alwin> | 2005-04-09 21:37:02 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-04-09 21:37:02 (UTC) |
commit | 274690da3f91a808b77a7b9bf98b6bc09a302fc9 (patch) (side-by-side diff) | |
tree | 7f87991f04a8ad41f2178871f75ba1c2466217c8 /noncore/multimedia/opieplayer2/lib.cpp | |
parent | af5f26910ae74bd5446db73fd9c870d4aad94f52 (diff) | |
download | opie-274690da3f91a808b77a7b9bf98b6bc09a302fc9.zip opie-274690da3f91a808b77a7b9bf98b6bc09a302fc9.tar.gz opie-274690da3f91a808b77a7b9bf98b6bc09a302fc9.tar.bz2 |
cleanup audio/videooutput the right way
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index 6ed4cea..9f0d448 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp @@ -145,24 +145,26 @@ void Lib::initialize() m_duringInitialization = false; } Lib::~Lib() { assert( isRunning() == false ); assert( m_initialized ); // free( m_config ); xine_close( m_stream ); xine_event_dispose_queue( m_queue ); xine_dispose( m_stream ); + xine_close_audio_driver(m_xine,m_audioOutput); + xine_close_video_driver(m_xine,m_videoOutput); xine_exit( m_xine ); /* FIXME either free or delete but valgrind bitches against both */ //free( m_videoOutput ); //delete m_audioOutput; } void Lib::resize ( const QSize &s ) { assert( m_initialized || m_duringInitialization ); if ( s. width ( ) && s. height ( ) ) { ::null_set_gui_width( m_videoOutput, s. width() ); |