mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-01 17:53:52 +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;
|
GstEncodingProfile *prof;
|
||||||
gchar *inputuri;
|
gchar *inputuri;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
ctx = g_option_context_new ("- encode URIs with GstProfile and encodebin");
|
ctx = g_option_context_new ("- encode URIs with GstProfile and encodebin");
|
||||||
g_option_context_add_main_entries (ctx, options, NULL);
|
g_option_context_add_main_entries (ctx, options, NULL);
|
||||||
|
|
|
@ -98,8 +98,10 @@ main (int argc, char **argv)
|
||||||
gulong embed_xid;
|
gulong embed_xid;
|
||||||
GstStateChangeReturn sret;
|
GstStateChangeReturn sret;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
gtk_init (&argc, &argv);
|
gtk_init (&argc, &argv);
|
||||||
|
|
|
@ -80,8 +80,10 @@ find_video_sink (void)
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
|
@ -2672,8 +2672,10 @@ main (int argc, char **argv)
|
||||||
GOptionContext *ctx;
|
GOptionContext *ctx;
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
ctx = g_option_context_new ("- test seeking in gsteamer");
|
ctx = g_option_context_new ("- test seeking in gsteamer");
|
||||||
g_option_context_add_main_entries (ctx, options, NULL);
|
g_option_context_add_main_entries (ctx, options, NULL);
|
||||||
|
|
|
@ -463,8 +463,10 @@ main (int argc, char **argv)
|
||||||
GOptionContext *ctx;
|
GOptionContext *ctx;
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
ctx = g_option_context_new ("seek");
|
ctx = g_option_context_new ("seek");
|
||||||
g_option_context_add_main_entries (ctx, options, NULL);
|
g_option_context_add_main_entries (ctx, options, NULL);
|
||||||
|
|
|
@ -2675,8 +2675,10 @@ main (int argc, char **argv)
|
||||||
GOptionContext *ctx;
|
GOptionContext *ctx;
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
ctx = g_option_context_new ("- test seeking in gsteamer");
|
ctx = g_option_context_new ("- test seeking in gsteamer");
|
||||||
g_option_context_add_main_entries (ctx, options, NULL);
|
g_option_context_add_main_entries (ctx, options, NULL);
|
||||||
|
|
|
@ -100,8 +100,10 @@ main (int argc, char **argv)
|
||||||
};
|
};
|
||||||
GTimer *timer;
|
GTimer *timer;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
ctx = g_option_context_new ("FILES OR DIRECTORIES WITH AUDIO FILES");
|
ctx = g_option_context_new ("FILES OR DIRECTORIES WITH AUDIO FILES");
|
||||||
g_option_context_add_main_entries (ctx, options, NULL);
|
g_option_context_add_main_entries (ctx, options, NULL);
|
||||||
|
|
|
@ -172,8 +172,10 @@ main (int argc, char **argv)
|
||||||
GstPropertyProbe *probe;
|
GstPropertyProbe *probe;
|
||||||
GValueArray *arr;
|
GValueArray *arr;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
gtk_init (&argc, &argv);
|
gtk_init (&argc, &argv);
|
||||||
|
|
|
@ -144,8 +144,10 @@ main (gint argc, gchar ** argv)
|
||||||
gulong embed_xid = 0;
|
gulong embed_xid = 0;
|
||||||
gboolean force_aspect = FALSE, draw_borders = FALSE;
|
gboolean force_aspect = FALSE, draw_borders = FALSE;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
gtk_init (&argc, &argv);
|
gtk_init (&argc, &argv);
|
||||||
|
|
|
@ -497,8 +497,10 @@ main (int argc, char **argv)
|
||||||
};
|
};
|
||||||
GOptionContext *ctx;
|
GOptionContext *ctx;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 31, 0)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
ctx =
|
ctx =
|
||||||
g_option_context_new
|
g_option_context_new
|
||||||
|
|
Loading…
Reference in a new issue