MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_get_state

Function hb_get_state

libhb/hb.c:2089–2098  ·  view source on GitHub ↗

* Returns the state of the conversion process. * @param h Handle to hb_handle_t. * @param s Handle to hb_state_t which to copy the state data. */

Source from the content-addressed store, hash-verified

2087 * @param s Handle to hb_state_t which to copy the state data.
2088 */
2089void hb_get_state( hb_handle_t * h, hb_state_t * s )
2090{
2091 hb_lock( h->state_lock );
2092
2093 memcpy( s, &h->state, sizeof( hb_state_t ) );
2094 if ( h->state.state == HB_STATE_SCANDONE || h->state.state == HB_STATE_WORKDONE )
2095 h->state.state = HB_STATE_IDLE;
2096
2097 hb_unlock( h->state_lock );
2098}
2099
2100void hb_get_state2( hb_handle_t * h, hb_state_t * s )
2101{

Callers 3

hb_get_state_jsonFunction · 0.85
HandleEventsFunction · 0.85
ghb_track_statusFunction · 0.85

Calls 2

hb_lockFunction · 0.85
hb_unlockFunction · 0.85

Tested by 1

HandleEventsFunction · 0.68