diff options
author | Edward Hervey <bilboed@bilboed.com> | 2006-03-12 15:33:00 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2006-03-12 15:33:00 +0000 |
commit | 5fd004431365f3d850b4075e9133bbd9c42d3c0a (patch) | |
tree | ef25e30b4383607b68ac267572a888e8f662e6fe /sys | |
parent | 3fa1bc1500a50af44204572d10904784b14b8a4f (diff) | |
download | gst-plugins-bad-5fd004431365f3d850b4075e9133bbd9c42d3c0a.tar.gz gst-plugins-bad-5fd004431365f3d850b4075e9133bbd9c42d3c0a.tar.bz2 gst-plugins-bad-5fd004431365f3d850b4075e9133bbd9c42d3c0a.zip |
sys/v4l2/v4l2src_calls.c: g_atomic_int_set is only available in glib-0.10, use gst_atomic_int_et instead.
Original commit message from CVS:
* sys/v4l2/v4l2src_calls.c: (gst_v4l2src_capture_init),
(gst_v4l2src_buffer_pool_free):
g_atomic_int_set is only available in glib-0.10, use gst_atomic_int_et
instead.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l2/v4l2src_calls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/v4l2/v4l2src_calls.c b/sys/v4l2/v4l2src_calls.c index ae27de1b..6dfe4494 100644 --- a/sys/v4l2/v4l2src_calls.c +++ b/sys/v4l2/v4l2src_calls.c @@ -332,7 +332,7 @@ gst_v4l2src_capture_init (GstV4l2Src * v4l2src) GST_LOG_OBJECT (v4l2src, "initiating buffer pool"); v4l2src->pool = g_new (GstV4l2BufferPool, 1); - g_atomic_int_set (&v4l2src->pool->refcount, 1); + gst_atomic_int_set (&v4l2src->pool->refcount, 1); v4l2src->pool->video_fd = GST_V4L2ELEMENT (v4l2src)->video_fd; v4l2src->pool->buffer_count = v4l2src->breq.count; v4l2src->pool->buffers = g_new0 (GstV4l2Buffer, v4l2src->breq.count); @@ -340,7 +340,7 @@ gst_v4l2src_capture_init (GstV4l2Src * v4l2src) for (n = 0; n < v4l2src->breq.count; n++) { GstV4l2Buffer *buffer = &v4l2src->pool->buffers[n]; - g_atomic_int_set (&buffer->refcount, 1); + gst_atomic_int_set (&buffer->refcount, 1); buffer->pool = v4l2src->pool; buffer->buffer.index = n; buffer->buffer.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; @@ -455,11 +455,11 @@ gst_v4l2src_buffer_pool_free (GstV4l2BufferPool * pool, gboolean do_close) guint i; for (i = 0; i < pool->buffer_count; i++) { - g_atomic_int_set (&pool->buffers[i].refcount, 0); + gst_atomic_int_set (&pool->buffers[i].refcount, 0); munmap (pool->buffers[i].start, pool->buffers[i].length); } g_free (pool->buffers); - g_atomic_int_set (&pool->refcount, 0); + gst_atomic_int_set (&pool->refcount, 0); if (do_close) close (pool->video_fd); g_free (pool); |