<br>
> Hello,<br>
> could you resubmit it using git-format-patch ?<br>
> <br>
> <br>
> Best regards.<br>
> <br>
> --<br>
> R?mi Duraffort | ivoire<br clear="all"><br>Hi; <br> i'd like to do that ,below;<br> (this patch add frame-by-frame function to rc interface. almost cp from Qt4. wish it could help.)<br>-------------------------<br>
<br><br>From 47a68f18400cf58cb27360855922a1b488f11eef Mon Sep 17 00:00:00 2001<br>From: chenee <<a href="mailto:chenee@hhcn.com">chenee@hhcn.com</a>><br>Date: Fri, 31 Jul 2009 08:38:15 +0800<br>Subject: [PATCH] add frame-by-frame function to modules/control/rc.c<br>
<br>---<br> modules/control/rc.c | 12 +++++++++++-<br> 1 files changed, 11 insertions(+), 1 deletions(-)<br><br>diff --git a/modules/control/rc.c b/modules/control/rc.c<br>index e1edcaf..430dc8b 100644<br>--- a/modules/control/rc.c<br>
+++ b/modules/control/rc.c<br>@@ -412,6 +412,7 @@ static void RegisterCallbacks( intf_thread_t *p_intf )<br> ADD( "faster", VOID, Input )<br> ADD( "slower", VOID, Input )<br> ADD( "normal", VOID, Input )<br>
+ ADD( "frame", VOID, Input )<br> <br> ADD( "atrack", STRING, Input )<br> ADD( "vtrack", STRING, Input )<br>@@ -514,6 +515,7 @@ static void Run( intf_thread_t *p_intf )<br> var_AddCallback( p_input, "rate", RateChanged, p_intf );<br>
var_AddCallback( p_input, "time-offset", TimeOffsetChanged,<br> p_intf );<br>+ var_AddCallback( p_input, "frame-next", RateChanged, p_intf );<br>
}<br> }<br> else if( p_input->b_dead )<br>@@ -524,6 +526,7 @@ static void Run( intf_thread_t *p_intf )<br> var_DelCallback( p_input, "rate", RateChanged, p_intf );<br>
var_DelCallback( p_input, "time-offset", TimeOffsetChanged,<br> p_intf );<br>+ var_DelCallback( p_input, "frame-next", RateChanged, p_intf );<br> vlc_object_release( p_input );<br>
p_input = NULL;<br> <br>@@ -818,6 +821,7 @@ static void Run( intf_thread_t *p_intf )<br> var_DelCallback( p_input, "rate-slower", RateChanged, p_intf );<br> var_DelCallback( p_input, "rate", RateChanged, p_intf );<br>
var_DelCallback( p_input, "time-offset", TimeOffsetChanged, p_intf );<br>+ var_DelCallback( p_input, "frame-next", RateChanged, p_intf );<br> vlc_object_release( p_input );<br> }<br>
<br>@@ -858,6 +862,7 @@ static void Help( intf_thread_t *p_intf, bool b_longhelp)<br> msg_rc("%s", _("| faster . . . . . . . . . . faster playing of stream"));<br> msg_rc("%s", _("| slower . . . . . . . . . . slower playing of stream"));<br>
msg_rc("%s", _("| normal . . . . . . . . . . normal playing of stream"));<br>+ msg_rc("%s", _("| frame. . . . . . . . . . play frame by frame"));<br> msg_rc("%s", _("| f [on|off] . . . . . . . . . . . . toggle fullscreen"));<br>
msg_rc("%s", _("| info . . . . . information about the current stream"));<br> msg_rc("%s", _("| stats . . . . . . . . show statistical information"));<br>@@ -1030,7 +1035,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,<br>
<br> int state = var_GetInteger( p_input, "state" );<br> if( ( state == PAUSE_S ) &&<br>- ( strcmp( psz_cmd, "pause" ) != 0 ) )<br>+ ( strcmp( psz_cmd, "pause" ) != 0 ) && (strcmp( psz_cmd,"frame") != 0 ) )<br>
{<br> msg_rc( "%s", _("Press menu select or pause to continue.") );<br> }<br>@@ -1099,6 +1104,11 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,<br> var_SetInteger( p_input, "rate", INPUT_RATE_DEFAULT );<br>
i_error = VLC_SUCCESS;<br> }<br>+ else if ( !strcmp( psz_cmd, "frame" ) )<br>+ {<br>+ var_TriggerCallback( p_input, "frame-next" );<br>+ i_error = VLC_SUCCESS;<br>+ }<br>
else if( !strcmp( psz_cmd, "chapter" ) ||<br> !strcmp( psz_cmd, "chapter_n" ) ||<br> !strcmp( psz_cmd, "chapter_p" ) )<br>-- <br>1.6.0.4<br><br><br><br><br><br>
<br><br><br><br><br><br>-- <br>--------------<br>»ªºã¿Æ¼¼ ³ÂÒËÒå <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>