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

Function live_preview_toggle_playback

gtk/src/preview.c:343–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343static void
344live_preview_toggle_playback (signal_user_data_t *ud)
345{
346 if (!ud->preview->live_enabled)
347 return;
348
349 if (!gtk_media_file_get_file(GTK_MEDIA_FILE(ud->preview->video)))
350 {
351 live_preview_start_new(ud);
352 }
353 else if (!gtk_media_stream_get_playing(ud->preview->video))
354 {
355 live_preview_play(ud);
356 }
357 else
358 {
359 live_preview_pause(ud);
360 }
361}
362
363static void
364live_preview_stop (void)

Callers 1

Calls 3

live_preview_start_newFunction · 0.85
live_preview_playFunction · 0.85
live_preview_pauseFunction · 0.85

Tested by

no test coverage detected