blob: 5e33f13af8b0555b96e672323185d4f2f47a3b00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Index: gnome-system-tools-3.0.0/src/common/gst-tool.c
===================================================================
--- gnome-system-tools-3.0.0.orig/src/common/gst-tool.c 2011-02-26 18:52:42.000000000 +0100
+++ gnome-system-tools-3.0.0/src/common/gst-tool.c 2011-10-22 18:23:29.742506332 +0200
@@ -221,6 +221,7 @@
gchar *widget_name;
GtkWidget *dialog;
OobsResult result;
+ int i;
object = (* G_OBJECT_CLASS (gst_tool_parent_class)->constructor) (type,
n_construct_properties,
@@ -241,6 +242,12 @@
g_free (widget_name);
}
+ for (i=0; i<12; i++) { /* Loop for 3 seconds waiting for the backends to start */
+ if (oobs_session_get_connected (tool->session))
+ break;
+ g_usleep(250000);
+ }
+
result = oobs_session_get_platform (tool->session, NULL);
if (result == OOBS_RESULT_NO_PLATFORM) {
dialog = gst_platform_dialog_new (tool->session);
|