summaryrefslogtreecommitdiffstats
path: root/gtk/src/preview.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-12-05 18:21:20 +0000
committerjstebbins <[email protected]>2008-12-05 18:21:20 +0000
commita3c6c3d28e31b4a60cbcb45baaefb942c0e06976 (patch)
tree5fcb227e1468c0c70d41a6515de67cb1c742f179 /gtk/src/preview.c
parente8fc4aab3b2188244c884855272f731c2e69b3b4 (diff)
LinGui: stop live preview playback when the preview window is closed
otherwise you still continue to hear the audio. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2012 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r--gtk/src/preview.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c
index 5bc416f70..51e36c27e 100644
--- a/gtk/src/preview.c
+++ b/gtk/src/preview.c
@@ -745,3 +745,13 @@ preview_frame_value_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
ghb_set_preview_image(ud);
}
+gboolean
+preview_window_delete_cb(
+ GtkWidget *widget,
+ GdkEvent *event,
+ signal_user_data_t *ud)
+{
+ live_preview_stop(ud);
+ gtk_widget_hide(widget);
+ return TRUE;
+}