this state indicates the transition from the end of HB_STATE_WORKING to the beginning of HB_STATE_WORKDONE.
This state can take as long a 10 minutes on a long conversion.
The associated working structure contains a progress float.
Once we determine how to get a proper progress from the call to av_write_trailer in libavformat, we can update this progress.
HB, IHB, and HBTest are now using using HB_STATE_MUXING to provided feedback to the user.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk/libhb@96
b64f7644-9d1e-0410-96f1-
a4d463321fa5
#define HB_STATE_WORKING 8
#define HB_STATE_PAUSED 16
#define HB_STATE_WORKDONE 32
+#define HB_STATE_MUXING 64
int state;
union
int error;
} workdone;
+ struct
+ {
+ /* HB_STATE_MUXING */
+ float progress;
+ } muxing;
} param;
};
struct stat sb;
uint64_t bytes_total, frames_total;
+#define p state.param.muxing
+ /* Update the UI */
+ hb_state_t state;
+ state.state = HB_STATE_MUXING;
+ p.progress = 0;
+ hb_set_state( job->h, &state );
+#undef p
m->end( m );
if( !stat( job->file, &sb ) )