[vlc-devel] commit: Fixed invalid use of p_input->i_pts_delay. (Laurent Aimar )

git version control git at videolan.org
Fri Jan 16 21:10:36 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Jan 16 20:39:59 2009 +0100| [f7e16185971b12ab9cac972e5ed9d76fe5dada47] | committer: Laurent Aimar 

Fixed invalid use of p_input->i_pts_delay.

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

 modules/video_output/snapshot.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/modules/video_output/snapshot.c b/modules/video_output/snapshot.c
index 35b6d6f..09886bf 100644
--- a/modules/video_output/snapshot.c
+++ b/modules/video_output/snapshot.c
@@ -359,19 +359,11 @@ static void Destroy( vlc_object_t *p_this )
 /* Return the position in ms from the start of the movie */
 static mtime_t snapshot_GetMovietime( vout_thread_t *p_vout )
 {
-    input_thread_t* p_input;
-    vlc_value_t val;
-    mtime_t i_result;
-
-    p_input = p_vout->p_sys->p_input;
+    input_thread_t *p_input = p_vout->p_sys->p_input;
     if( !p_input )
         return 0;
 
-    var_Get( p_input, "time", &val );
-
-    i_result = val.i_time - p_input->i_pts_delay;
-
-    return( i_result / 1000 );
+    return var_GetTime( p_input, "time" ) / 1000;
 }
 
 /*****************************************************************************




More information about the vlc-devel mailing list