[vlc-devel] commit: Revert "Allowing for rate < 0 enables rewind playback for eg: RTSP streams." (Christophe Mutricy )

git version control git at videolan.org
Tue Nov 25 23:31:59 CET 2008


vlc | branch: 0.9-bugfix | Christophe Mutricy <xtophe at videolan.org> | Tue Nov 25 22:28:16 2008 +0000| [786f58ff93d94bf56fe0199bdbd7841069c23620] | committer: Christophe Mutricy 

Revert "Allowing for rate < 0 enables rewind playback for eg: RTSP streams."

This reverts commit 76cfaf8a84620ad53f5b08142e4251c90bdf7f36.

New features that are not self-contained and modify src/ are not
welcomed in -bugfix branches without pre-existent consensus.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=786f58ff93d94bf56fe0199bdbd7841069c23620
---

 src/input/input.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 5694ead..6840657 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -146,7 +146,6 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
     msg_Dbg( p_input, "Creating an input for '%s'", psz_name);
 
     free( psz_name );
-    psz_name = NULL;
 
     /* Start a timer to mesure how long it takes
      * to launch an input */
@@ -1647,12 +1646,7 @@ static bool Control( input_thread_t *p_input, int i_type,
                 }
             }
 
-            if( (i_rate < 0) && p_input->p->input.b_rescale_ts )
-            {
-                msg_Dbg( p_input, "cannot set negative rate" );
-                i_rate = INPUT_RATE_MIN;
-            }
-            else if( (i_rate > 0) && (i_rate < INPUT_RATE_MIN) )
+            if( i_rate < INPUT_RATE_MIN )
             {
                 msg_Dbg( p_input, "cannot set rate faster" );
                 i_rate = INPUT_RATE_MIN;




More information about the vlc-devel mailing list