summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.cpp
authorzecke <zecke>2002-07-02 15:25:38 (UTC)
committer zecke <zecke>2002-07-02 15:25:38 (UTC)
commite26bf96e2e4f2d1edf19e81dc67eace3cb8622dc (patch) (side-by-side diff)
tree0346837eed0c9acc55f25601e495a188fb1111fb /noncore/multimedia/opieplayer2/lib.cpp
parentd4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8 (diff)
downloadopie-e26bf96e2e4f2d1edf19e81dc67eace3cb8622dc.zip
opie-e26bf96e2e4f2d1edf19e81dc67eace3cb8622dc.tar.gz
opie-e26bf96e2e4f2d1edf19e81dc67eace3cb8622dc.tar.bz2
my hacky null video output plugin
This will become our smart opie video widget controller...
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp
index ecaeeea..4b13f00 100644
--- a/noncore/multimedia/opieplayer2/lib.cpp
+++ b/noncore/multimedia/opieplayer2/lib.cpp
@@ -1,57 +1,57 @@
#include <stdio.h>
#include <stdlib.h>
//#include <qpe/qpeapplication.h>
#include <qfile.h>
#include "frame.h"
-#include "xinelib.h"
+#include "lib.h"
using namespace XINE;
Lib::Lib() {
printf("Lib");
QCString str( getenv("HOME") );
str += "/Settings/opiexine.cf";
// get the configuration
m_config = xine_config_file_init( str.data() );
// allocate oss for sound
// and fb for framebuffer
m_audioOutput= xine_load_audio_output_plugin( m_config, "oss") ;
if (m_audioOutput == NULL )
printf("Failure\n");
else
printf("Success\n");
// test code
m_videoOutput = xine_load_video_output_plugin(m_config, "fb",
VISUAL_TYPE_FB,
0 );
char** files = xine_list_video_output_plugins(3);
char* out;
int i = 0;
while ( ( out = files[i] ) != 0 ) {
printf("Audio %s\n", out );
i++;
}
m_xine = xine_init( m_videoOutput,
m_audioOutput,
m_config );
}
Lib::~Lib() {
delete m_config;
xine_exit( m_xine );
delete m_videoOutput;
//delete m_audioOutput;
}
QCString Lib::version() {