summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-07-04 09:45:14 +0000
committerphintuka <phintuka>2008-07-04 09:45:14 +0000
commit590a9a6fe906f94387559618456880cc30ae9346 (patch)
tree83a1ff018106dfe4bc08b8c3d12134772bd087f6
parent943d0e58687db9634e3a542a38682f7aa025842b (diff)
downloadxineliboutput-590a9a6fe906f94387559618456880cc30ae9346.tar.gz
xineliboutput-590a9a6fe906f94387559618456880cc30ae9346.tar.bz2
Simplify: use xine_check_version
-rw-r--r--xine_frontend.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/xine_frontend.c b/xine_frontend.c
index 9e22a24b..56664cc9 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.68 2008-07-04 09:44:09 phintuka Exp $
+ * $Id: xine_frontend.c,v 1.69 2008-07-04 09:45:14 phintuka Exp $
*
*/
@@ -680,13 +680,10 @@ static int fe_xine_init(frontend_t *this_gen, const char *audio_driver,
/* multithreaded decoding / post processing */
if(guess_cpu_count() > 1) {
- int xmajor, xminor, xsub;
- xine_get_version(&xmajor, &xminor, &xsub);
- if(xmajor*10000 + xminor*100 + xsub < 10109)
- LOGMSG("Multithreaded video decoding is not supported in xine-lib %d.%d.%d",
- xmajor, xminor, xsub);
+ if(!xine_check_version(1,1,9))
+ LOGMSG("FFmpeg multithreaded video decoding is not supported in xine-lib < 1.1.9");
else
- LOGMSG("Enabling multithreaded video decoding");
+ LOGMSG("Enabling FFmpeg multithreaded video decoding");
/* try to enable anyway, maybe someone is using patched 1.1.8 ... */
x_upd_num("video.processing.ffmpeg_thread_count", guess_cpu_count());