projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ffd787
)
wpe: Fix atomic usage
author
Thibault Saunier
<tsaunier@igalia.com>
Fri, 21 May 2021 14:31:37 +0000
(10:31 -0400)
committer
Thibault Saunier
<tsaunier@igalia.com>
Tue, 8 Jun 2021 03:15:05 +0000
(
03:15
+0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2273>
ext/wpe/wpe-extension/gstwpeaudiosink.c
patch
|
blob
|
history
diff --git
a/ext/wpe/wpe-extension/gstwpeaudiosink.c
b/ext/wpe/wpe-extension/gstwpeaudiosink.c
index
ae43f48
..
d5d8a94
100644
(file)
--- a/
ext/wpe/wpe-extension/gstwpeaudiosink.c
+++ b/
ext/wpe/wpe-extension/gstwpeaudiosink.c
@@
-170,8
+170,7
@@
set_caps (GstBaseSink * sink, GstCaps * caps)
}
self->caps = gst_caps_to_string (caps);
- g_atomic_int_inc (&id);
- self->id = g_atomic_int_get (&id);
+ self->id = g_atomic_int_add (&id, 1);
stream_id = gst_pad_get_stream_id (GST_BASE_SINK_PAD (sink));
gst_wpe_extension_send_message (webkit_user_message_new ("gstwpe.new_stream",
g_variant_new ("(uss)", self->id, self->caps, stream_id)),