diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-01-02 11:35:30 +0100 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-01-06 10:04:08 +0100 |
commit | dd2ca582a150edd5c9c95a6ddde8960a204bfabe (patch) | |
tree | 2ccb868a25733ad6fa594857f6e181a58fbc2c98 /tests | |
parent | 33bb859228d1767573ed0bfdbdac92d69c29c98a (diff) | |
download | gstreamer-vaapi-dd2ca582a150edd5c9c95a6ddde8960a204bfabe.tar.gz |
tests: simple-decoder: don't use deprecated g_thread_create().
Use g_thread_try_new() instead of the deprecated g_thread_create()
function. Provide compatibility glue for any GLib version < 2.31.2.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple-decoder.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/simple-decoder.c b/tests/simple-decoder.c index 69c960be..bba4f852 100644 --- a/tests/simple-decoder.c +++ b/tests/simple-decoder.c @@ -396,7 +396,8 @@ start_decoder(App *app) g_timer_start(app->timer); - app->decoder_thread = g_thread_create(decoder_thread, app, TRUE, NULL); + app->decoder_thread = g_thread_try_new("Decoder Thread", decoder_thread, + app, NULL); if (!app->decoder_thread) return FALSE; return TRUE; @@ -571,7 +572,8 @@ flush_decoder_queue(App *app) static gboolean start_renderer(App *app) { - app->render_thread = g_thread_create(renderer_thread, app, TRUE, NULL); + app->render_thread = g_thread_try_new("Renderer Thread", renderer_thread, + app, NULL); if (!app->render_thread) return FALSE; return TRUE; |