<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I fail to see what you mean, can you please give me some more
info so I can meet your expectations:</p>
<ol>
<li>Are you afraid of the counter overflowing the underlying
unsigned int ?</li>
<li>How is it worse than before ?</li>
<li>What's the point of having helper functions for reference
counting if we should not use them ?<br>
</li>
</ol>
<div class="moz-cite-prefix">On 21/02/2020 18:00, Rémi
Denis-Courmont wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1661544.Y6CEv2ggxU@basile.remlab.net">
<pre class="moz-quote-pre" wrap="">Le perjantaina 21. helmikuuta 2020, 16.14.34 EET
<a class="moz-txt-link-abbreviated" href="mailto:quentin.chateau@deepskycorp.com">quentin.chateau@deepskycorp.com</a> a écrit :
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">From: Quentin Chateau <a class="moz-txt-link-rfc2396E" href="mailto:quentin.chateau@deepskycorp.com"><quentin.chateau@deepskycorp.com></a>
---
src/audio_output/aout_internal.h | 3 ++-
src/audio_output/output.c | 7 ++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/audio_output/aout_internal.h
b/src/audio_output/aout_internal.h index 57b4f3264d..8b563012e2 100644
--- a/src/audio_output/aout_internal.h
+++ b/src/audio_output/aout_internal.h
@@ -25,6 +25,7 @@
# include <stdatomic.h>
+# include <vlc_atomic.h>
# include <vlc_viewpoint.h>
# include "../clock/clock.h"
@@ -97,7 +98,7 @@ typedef struct
atomic_uint buffers_played;
atomic_uchar restart;
- atomic_uintptr_t refs;
+ vlc_atomic_rc_t rc;
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
This causes a potential unchecked overflow of the counter.
No thanks.
</pre>
</blockquote>
</body>
</html>