HI all:<br>maybe it's a bug; <br>this cmd below will find _NO_ es at all, but select="es=1,es=2" work.<br><br>>vlc /tmp/2.avi --sout '#duplicate{dst=display,select="es=1-2"}'<br><br>---------------------patch begin -------------------<br>
>From cfd7963380f1db2ab122676cf0fe4764ef94e938 Mon Sep 17 00:00:00 2001<br>From: chenee <<a href="mailto:chenee543216@gmail.com">chenee543216@gmail.com</a>><br>Date: Fri, 4 Sep 2009 01:21:52 +0800<br>Subject: [PATCH] duplicate.c:fix bug of NumInRange(), i_stop always < 0<br>
<br>---<br> modules/stream_out/duplicate.c | 2 +-<br> 1 files changed, 1 insertions(+), 1 deletions(-)<br><br>diff --git a/modules/stream_out/duplicate.c b/modules/stream_out/duplicate.c<br>index d1939fc..6a50fdc 100644<br>
--- a/modules/stream_out/duplicate.c<br>+++ b/modules/stream_out/duplicate.c<br>@@ -310,7 +310,7 @@ static bool NumInRange( char *psz_range, int i_num )<br> i_start = strtol( psz_range, &end, 0 );<br> if( end == psz_range ) i_start = i_num;<br>
<br>- i_stop = strtol( psz, &end, 0 );<br>+ i_stop = strtol( psz+1, &end, 0 );<br> if( end == psz_range ) i_stop = i_num;<br> }<br> else<br>-- <br>1.6.0.4<br clear="all">
<br>---------------------patch end-----------------<br>HHCN Andy <a href="mailto:chenee@hhcn.com">chenee@hhcn.com</a><br>Tel/Fax: +86-551-5325652,5325653-820<br>Products Info. : <a href="http://www.hhcn.com">http://www.hhcn.com</a><br>
Tech. Support : <a href="http://www.hhcn.org">http://www.hhcn.org</a><br>HHTech : An Embedded Linux Tech. Provider in Mainland China<br>2008-08-13<br>