Gwenole Beauchesne
dd2ca582a1
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.
2014-01-06 10:04:08 +01:00
Gwenole Beauchesne
c516311a1a
legal: update copyright notice dates.
2013-11-22 06:39:20 +01:00
Gwenole Beauchesne
15519ebe3d
legal: add per-file authorship information.
...
Credit original authors on a per-file basis as we cannot expect people
to know all country-specific rules, or bother browsing through the git
history.
2013-11-22 06:39:15 +01:00
Gwenole Beauchesne
56bc1ce98c
glibcompat: add replacement for g_async_queue_timeout_pop().
...
g_async_queue_timeout_pop() appeared in glib 2.31.18. Implement it as
g_async_queue_timed_pop() with a GTimeVal as the final time to wait for
new data to arrive in the queue.
2013-01-31 11:30:35 +01:00
Gwenole Beauchesne
20a81f5a70
glibcompat: add replacement for g_cond_wait().
2013-01-31 11:25:18 +01:00
Gwenole Beauchesne
48f4f0564e
libs: fix compatibility with glib 2.28.
...
Always prefer non deprecated APIs by default and provide compatibility
glue for older glib versions when necessary.
2012-12-17 14:33:52 +01:00
Gwenole Beauchesne
f65a413500
glibcompat: add replacement for g_cond_wait_until().
2012-09-12 13:42:49 +02:00
Javier Jardón
30024b3f8e
libs: use g_clear_object() wherever applicable.
...
This is a preferred thread-safe version. Also add an inline version of
g_clear_object() if compiling with glib < 2.28.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-07-19 15:19:17 +02:00
Gwenole Beauchesne
27c8269b43
glibcompat: drop explicit check for g_list_free_full().
2012-07-19 14:29:33 +02:00
Gwenole Beauchesne
830efb3fbd
glib: map deprecated API to glib >= 2.32 equivalents.
...
GStaticMutex and GStaticRecMutex are now replaced with GMutex and
GRecMutex, which no longer require any prior call to g_thread_init().
2012-02-07 11:07:15 +01:00
Gwenole Beauchesne
b54bf3175c
Add glib compatibility glue for older versions.
2012-01-30 19:53:13 +01:00