[vlc-devel] commit: transcode: One more occurence of pf_encode_video() that needs a timer. (Pierre d'Herbemont )

git version control git at videolan.org
Sat May 24 00:56:37 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat May 24 00:54:11 2008 +0200| [cf4026c9f3377830fa1b234362c73c6f7f85930a]

transcode: One more occurence of pf_encode_video() that needs a timer.

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

 modules/stream_out/transcode.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/stream_out/transcode.c b/modules/stream_out/transcode.c
index 62d7188..947fb51 100644
--- a/modules/stream_out/transcode.c
+++ b/modules/stream_out/transcode.c
@@ -2547,7 +2547,9 @@ static int transcode_video_process( sout_stream_t *p_stream,
             {
                 block_t *p_block;
                 p_pic->date = i_pts;
+                video_timer_start( id->p_encoder );
                 p_block = id->p_encoder->pf_encode_video(id->p_encoder, p_pic);
+                video_timer_stop( id->p_encoder );
                 block_ChainAppend( out, p_block );
             }
         }




More information about the vlc-devel mailing list