mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
tools, tests: g_thread_init() is deprecated in glib master
It's not needed any longer.
This commit is contained in:
parent
0d98aa25b8
commit
ff6cc8af82
10 changed files with 20 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue