summaryrefslogtreecommitdiffstats
path: root/gtk/src/preview.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r--gtk/src/preview.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c
index c58281306..cb78fce7e 100644
--- a/gtk/src/preview.c
+++ b/gtk/src/preview.c
@@ -546,6 +546,8 @@ live_preview_cb(GstBus *bus, GstMessage *msg, gpointer data)
//printf("element\n");
if (gst_is_missing_plugin_message(msg))
{
+ GtkWindow *hb_window;
+ hb_window = GTK_WINDOW(GHB_WIDGET(ud->builder, "hb_window"));
gst_element_set_state(ud->preview->play, GST_STATE_PAUSED);
gchar *message, *desc;
desc = gst_missing_plugin_message_get_description(msg);
@@ -553,7 +555,8 @@ live_preview_cb(GstBus *bus, GstMessage *msg, gpointer data)
_("Missing GStreamer plugin\n"
"Audio or Video may not play as expected\n\n%s"),
desc);
- ghb_message_dialog(GTK_MESSAGE_WARNING, message, "Ok", NULL);
+ ghb_message_dialog(hb_window, GTK_MESSAGE_WARNING,
+ message, "Ok", NULL);
g_free(message);
gst_element_set_state(ud->preview->play, GST_STATE_PLAYING);
}