From a1ef8c9369edd85a1194e00dfba9e996f3a30e05 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 15 Sep 2010 21:38:29 +0000 Subject: LinGui: try other gstreamer sink interfaces if gconfvideosink fails It appears that gconfvideosink may not work on kde systems. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3534 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/preview.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gtk/src') diff --git a/gtk/src/preview.c b/gtk/src/preview.c index fc713f6d2..4fb0d5bed 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -182,9 +182,15 @@ ghb_preview_init(signal_user_data_t *ud) ud->preview->xid = GDK_WINDOW_HWND(ud->preview->view->window); #endif ud->preview->play = gst_element_factory_make("playbin", "play"); - //xover = gst_element_factory_make("xvimagesink", "xover"); - //xover = gst_element_factory_make("ximagesink", "xover"); xover = gst_element_factory_make("gconfvideosink", "xover"); + if (xover == NULL) + { + xover = gst_element_factory_make("xvimagesink", "xover"); + } + if (xover == NULL) + { + xover = gst_element_factory_make("ximagesink", "xover"); + } if (ud->preview->play == NULL || xover == NULL) { g_message("Couldn't initialize gstreamer. Disabling live preview."); -- cgit v1.2.3