summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/src/callbacks.c26
-rw-r--r--gtk/src/presets.c4
2 files changed, 23 insertions, 7 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 8e710e53a..01edebf2f 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -2619,13 +2619,25 @@ working_status_string(signal_user_data_t *ud, ghb_instance_status_t *status)
}
if(status->seconds > -1)
{
- status_str= g_strdup_printf(
- "Encoding: %s%s%.2f %%"
- " (%.2f fps, avg %.2f fps, ETA %02dh%02dm%02ds)",
- job_str, task_str,
- 100.0 * status->progress,
- status->rate_cur, status->rate_avg, status->hours,
- status->minutes, status->seconds );
+ if (status->rate_cur > 0.0)
+ {
+ status_str= g_strdup_printf(
+ "Encoding: %s%s%.2f %%"
+ " (%.2f fps, avg %.2f fps, ETA %02dh%02dm%02ds)",
+ job_str, task_str,
+ 100.0 * status->progress,
+ status->rate_cur, status->rate_avg, status->hours,
+ status->minutes, status->seconds );
+ }
+ else
+ {
+ status_str= g_strdup_printf(
+ "Encoding: %s%s%.2f %%"
+ " (ETA %02dh%02dm%02ds)",
+ job_str, task_str,
+ 100.0 * status->progress,
+ status->hours, status->minutes, status->seconds );
+ }
}
else
{
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index 56b9466e5..809ede24e 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -2049,6 +2049,10 @@ value_map_t framerate_xlat[] =
{"24", "24"},
{"25 (PAL Film/Video)", "25"},
{"29.97 (NTSC Video)", "29.97"},
+ {"30", "30"},
+ {"50", "50"},
+ {"59.94", "59.94"},
+ {"60", "60"},
{NULL, NULL}
};