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

Function ghb_live_reset

gtk/src/preview.c:380–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void
381ghb_live_reset(signal_user_data_t *ud)
382{
383 gboolean encoded;
384
385 if (ud->preview->live_id >= 0)
386 {
387 ghb_stop_live_encode();
388 }
389 ud->preview->live_id = -1;
390 ud->preview->encode_frame = -1;
391 live_preview_stop();
392 if (ud->preview->current)
393 {
394 g_free(ud->preview->current);
395 ud->preview->current = NULL;
396 }
397 encoded = ud->preview->encoded[ud->preview->frame];
398 memset(ud->preview->encoded, 0, sizeof(gboolean) * GHB_PREVIEW_MAX);
399 if (encoded)
400 ghb_set_preview_image(ud);
401}
402
403G_MODULE_EXPORT void
404live_preview_play_clicked_cb (GtkWidget *widget, gpointer data)

Callers 15

add_subtitle_to_uiFunction · 0.85
subtitle_update_settingFunction · 0.85
import_setting_updateFunction · 0.85
subtitle_add_fas_cbFunction · 0.85
subtitle_add_all_cbFunction · 0.85
subtitle_remove_cbFunction · 0.85
vcodec_changed_cbFunction · 0.85
framerate_changed_cbFunction · 0.85
color_range_changed_cbFunction · 0.85

Calls 3

ghb_stop_live_encodeFunction · 0.85
live_preview_stopFunction · 0.85
ghb_set_preview_imageFunction · 0.85

Tested by

no test coverage detected