diff options
author | jstebbins <[email protected]> | 2010-09-15 21:38:29 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-09-15 21:38:29 +0000 |
commit | a1ef8c9369edd85a1194e00dfba9e996f3a30e05 (patch) | |
tree | 0f239c501fc7f5fed35eb5fdd8cef9aef710dd73 /gtk | |
parent | 48b1861863208bea7b1dc36eb2f0773b5e09c045 (diff) |
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
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/preview.c | 10 |
1 files changed, 8 insertions, 2 deletions
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."); |