summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-11-13 23:10:16 +0000
committerphintuka <phintuka>2008-11-13 23:10:16 +0000
commitd5a9fbc7dfdf59ee8a629807a3caf6720aab3d23 (patch)
treed1395910a448b096ecda3f7f189559238614ce78
parent9d2c11e2afc395089f5a9d1accf3ad2f28e80c58 (diff)
downloadxineliboutput-d5a9fbc7dfdf59ee8a629807a3caf6720aab3d23.tar.gz
xineliboutput-d5a9fbc7dfdf59ee8a629807a3caf6720aab3d23.tar.bz2
Moved xine-lib version check to fe_xine_init()
-rw-r--r--xine_frontend.c9
-rw-r--r--xine_frontend_main.c9
2 files changed, 9 insertions, 9 deletions
diff --git a/xine_frontend.c b/xine_frontend.c
index 874432d2..4a760297 100644
--- a/xine_frontend.c
+++ b/xine_frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_frontend.c,v 1.81 2008-11-13 22:50:34 phintuka Exp $
+ * $Id: xine_frontend.c,v 1.82 2008-11-13 23:10:16 phintuka Exp $
*
*/
@@ -521,6 +521,13 @@ static int fe_xine_init(frontend_t *this_gen, const char *audio_driver,
if(!this)
return 0;
+ /* check xine-lib version */
+ if(!xine_check_version(1, 1, 0)) {
+ LOGERR("xine-lib is too old, require at least xine library version 1.1.0\n");
+ return FE_ERROR;
+ }
+
+
/*
* init xine engine
*/
diff --git a/xine_frontend_main.c b/xine_frontend_main.c
index ab443b94..1987b021 100644
--- a/xine_frontend_main.c
+++ b/xine_frontend_main.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_frontend_main.c,v 1.56 2008-11-13 11:05:33 phintuka Exp $
+ * $Id: xine_frontend_main.c,v 1.57 2008-11-13 23:10:16 phintuka Exp $
*
*/
@@ -485,13 +485,6 @@ int main(int argc, char *argv[])
PRINTF("\n");
- /* check xine-lib version */
- if(!xine_check_version(1, 1, 0)) {
- fprintf(stderr,"ERROR: xine-lib is too old, require at least "
- "xine library version 1.1.0\n");
- return -1;
- }
-
#if 1
/* backward compability */
if(mrl && ( !strncmp(mrl, MRL_ID ":tcp:", MRL_ID_LEN+5) ||