tools, tests: g_thread_init() is deprecated in glib master

It's not needed any longer.
This commit is contained in:
Tim-Philipp Müller 2011-12-04 17:02:39 +00:00
parent 0d98aa25b8
commit ff6cc8af82
10 changed files with 20 additions and 0 deletions

View file

@ -395,8 +395,10 @@ main (int argc, char **argv)
GstEncodingProfile *prof;
gchar *inputuri;
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
ctx = g_option_context_new ("- encode URIs with GstProfile and encodebin");
g_option_context_add_main_entries (ctx, options, NULL);

View file

@ -98,8 +98,10 @@ main (int argc, char **argv)
gulong embed_xid;
GstStateChangeReturn sret;
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
gst_init (&argc, &argv);
gtk_init (&argc, &argv);

View file

@ -80,8 +80,10 @@ find_video_sink (void)
int main(int argc, char *argv[])
{
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
gst_init (&argc, &argv);
QApplication app(argc, argv);

View file

@ -2672,8 +2672,10 @@ main (int argc, char **argv)
GOptionContext *ctx;
GError *err = NULL;
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
ctx = g_option_context_new ("- test seeking in gsteamer");
g_option_context_add_main_entries (ctx, options, NULL);

View file

@ -463,8 +463,10 @@ main (int argc, char **argv)
GOptionContext *ctx;
GError *err = NULL;
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
ctx = g_option_context_new ("seek");
g_option_context_add_main_entries (ctx, options, NULL);

View file

@ -2675,8 +2675,10 @@ main (int argc, char **argv)
GOptionContext *ctx;
GError *err = NULL;
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
ctx = g_option_context_new ("- test seeking in gsteamer");
g_option_context_add_main_entries (ctx, options, NULL);

View file

@ -100,8 +100,10 @@ main (int argc, char **argv)
};
GTimer *timer;
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
ctx = g_option_context_new ("FILES OR DIRECTORIES WITH AUDIO FILES");
g_option_context_add_main_entries (ctx, options, NULL);

View file

@ -172,8 +172,10 @@ main (int argc, char **argv)
GstPropertyProbe *probe;
GValueArray *arr;
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
gst_init (&argc, &argv);
gtk_init (&argc, &argv);

View file

@ -144,8 +144,10 @@ main (gint argc, gchar ** argv)
gulong embed_xid = 0;
gboolean force_aspect = FALSE, draw_borders = FALSE;
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
gst_init (&argc, &argv);
gtk_init (&argc, &argv);

View file

@ -497,8 +497,10 @@ main (int argc, char **argv)
};
GOptionContext *ctx;
#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
ctx =
g_option_context_new