summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-04-22 01:57:09 +0000
committerjstebbins <[email protected]>2010-04-22 01:57:09 +0000
commitfa7502ca1b3fb07a785e59d9834009df54bfb19a (patch)
treee2e41939b759591cac1f64c3b898ae3ca5b25d68 /libhb/work.c
parent264340057fe7b79509bc1a206583ea1ccab975c0 (diff)
fix fps logging when there is no audio track.
where there's no audio, the muxer closes earlier than when there is audio due to reference counting. upon close, the muxer sets the muxing state which overwrites the current state that includes the avg fps. so log the avg fps before closing mux. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3251 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/work.c b/libhb/work.c
index eea492b9c..935ffa490 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -939,6 +939,12 @@ static void do_job( hb_job_t * job, int cpu_count )
}
}
+ hb_handle_t * h = job->h;
+ hb_state_t state;
+ hb_get_state( h, &state );
+
+ hb_log("work: average encoding speed for job is %f fps", state.param.working.rate_avg);
+
job->done = 1;
if( muxer != NULL )
{
@@ -953,12 +959,6 @@ static void do_job( hb_job_t * job, int cpu_count )
free( sync );
}
- hb_handle_t * h = job->h;
- hb_state_t state;
- hb_get_state( h, &state );
-
- hb_log("work: average encoding speed for job is %f fps", state.param.working.rate_avg);
-
cleanup:
/* Stop the write thread (thread_close will block until the muxer finishes) */
job->done = 1;