[vlc-commits] commit: Use var_Inherit instead of var_CreateGet + var_Destroy. ( Antoine Cellerier )

git version control git at videolan.org
Tue Mar 2 12:23:46 CET 2010


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue Mar  2 12:21:25 2010 +0100| [33cb855c1469f8ce10ef72ebded98c94dc37afb9] | committer: Antoine Cellerier 

Use var_Inherit instead of var_CreateGet + var_Destroy.

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

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

diff --git a/src/input/input.c b/src/input/input.c
index 9b737f4..0ab34db 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -350,10 +350,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
     p_input->p->i_title_offset = p_input->p->i_seekpoint_offset = 0;
     p_input->p->i_state = INIT_S;
     p_input->p->i_rate = INPUT_RATE_DEFAULT
-                         / var_CreateGetFloat( p_input, "rate" );
-    /* Currently, the input rate variable is an integer. So we need to destroy
-     * the float variable inherited from the configuration. */
-    var_Destroy( p_input, "rate" );
+                         / var_InheritFloat( p_input, "rate" );
     p_input->p->b_recording = false;
     memset( &p_input->p->bookmark, 0, sizeof(p_input->p->bookmark) );
     TAB_INIT( p_input->p->i_bookmark, p_input->p->pp_bookmark );



More information about the vlc-commits mailing list