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

Function searching_status_string

gtk/src/callbacks.c:4423–4460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4421}
4422
4423static gchar*
4424searching_status_string(signal_user_data_t *ud, ghb_instance_status_t *status)
4425{
4426 gchar *task_str, *job_str, *status_str;
4427 gint qcount;
4428 gint index;
4429
4430 qcount = ghb_array_len(ud->queue);
4431 index = ghb_find_queue_job(ud->queue, status->unique_id, NULL);
4432 if (qcount > 1)
4433 {
4434 job_str = g_strdup_printf(_("job %d of %d, "), index+1, qcount);
4435 }
4436 else
4437 {
4438 job_str = g_strdup("");
4439 }
4440 task_str = g_strdup_printf(_("Searching for start time, "));
4441 if(status->seconds > -1)
4442 {
4443 status_str= g_strdup_printf(
4444 _("Encoding: %s%s%.2f %%"
4445 " (ETA %02dh%02dm%02ds)"),
4446 job_str, task_str,
4447 100.0 * status->progress,
4448 status->hours, status->minutes, status->seconds );
4449 }
4450 else
4451 {
4452 status_str= g_strdup_printf(
4453 _("Encoding: %s%s%.2f %%"),
4454 job_str, task_str,
4455 100.0 * status->progress );
4456 }
4457 g_free(task_str);
4458 g_free(job_str);
4459 return status_str;
4460}
4461
4462static gboolean is_flatpak = FALSE;
4463static gboolean flatpak_spawn_enable = FALSE;

Callers 1

ghb_backend_eventsFunction · 0.85

Calls 1

ghb_find_queue_jobFunction · 0.85

Tested by

no test coverage detected