summaryrefslogtreecommitdiff
authorzecke <zecke>2002-07-02 15:44:42 (UTC)
committer zecke <zecke>2002-07-02 15:44:42 (UTC)
commit78172d2d23543992605e273770692b5a0a84ed32 (patch) (unidiff)
tree6cff38f725cf2c6360917d2687f6574285bb8ede
parente26bf96e2e4f2d1edf19e81dc67eace3cb8622dc (diff)
downloadopie-78172d2d23543992605e273770692b5a0a84ed32.zip
opie-78172d2d23543992605e273770692b5a0a84ed32.tar.gz
opie-78172d2d23543992605e273770692b5a0a84ed32.tar.bz2
Try to load the null video plugi
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp
index 4b13f00..123ca91 100644
--- a/noncore/multimedia/opieplayer2/lib.cpp
+++ b/noncore/multimedia/opieplayer2/lib.cpp
@@ -6,13 +6,15 @@
6#include <qfile.h> 6#include <qfile.h>
7 7
8#include "frame.h" 8#include "frame.h"
9#include "lib.h" 9#include "lib.h"
10 10
11 11
12 12extern "C" {
13vo_driver_t* init_video_out_plugin( config_values_t* conf, void* video);
14}
13 15
14using namespace XINE; 16using namespace XINE;
15 17
16Lib::Lib() { 18Lib::Lib() {
17 printf("Lib"); 19 printf("Lib");
18 QCString str( getenv("HOME") ); 20 QCString str( getenv("HOME") );
@@ -41,12 +43,14 @@ Lib::Lib() {
41 printf("Audio %s\n", out ); 43 printf("Audio %s\n", out );
42 i++; 44 i++;
43 } 45 }
44 m_xine = xine_init( m_videoOutput, 46 m_xine = xine_init( m_videoOutput,
45 m_audioOutput, 47 m_audioOutput,
46 m_config ); 48 m_config );
49 // test loading
50 m_videoOutput = ::init_video_out_plugin( m_config, NULL );
47} 51}
48 52
49Lib::~Lib() { 53Lib::~Lib() {
50 delete m_config; 54 delete m_config;
51 xine_exit( m_xine ); 55 xine_exit( m_xine );
52 delete m_videoOutput; 56 delete m_videoOutput;
@@ -62,12 +66,13 @@ QCString Lib::version() {
62int Lib::majorVersion() { 66int Lib::majorVersion() {
63 return xine_get_major_version(); 67 return xine_get_major_version();
64} 68}
65int Lib::minorVersion() { 69int Lib::minorVersion() {
66 return xine_get_minor_version(); 70 return xine_get_minor_version();
67}; 71};
72
68int Lib::subVersion() { 73int Lib::subVersion() {
69 return xine_get_sub_version(); 74 return xine_get_sub_version();
70} 75}
71int Lib::play( const QString& fileName, 76int Lib::play( const QString& fileName,
72 int startPos, 77 int startPos,
73 int start_time ) { 78 int start_time ) {