<html><head></head><body>No objection. Though in hindsight, the resource system was not exactly a great success. Do we have an actual decoder user yet?<br><br><div class="gmail_quote">Le 7 juin 2019 16:49:15 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Otherwise it leaks or asserts.<hr> src/input/decoder_helpers.c | 3 +++<br> 1 file changed, 3 insertions(+)<br><br>diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c<br>index 3d1c574cb7..1c4593db30 100644<br>--- a/src/input/decoder_helpers.c<br>+++ b/src/input/decoder_helpers.c<br>@@ -31,6 +31,7 @@<br> #include <vlc_atomic.h><br> #include <vlc_meta.h><br> #include <vlc_modules.h><br>+#include "libvlc.h"<br> <br> void decoder_Init( decoder_t *p_dec, const es_format_t *restrict p_fmt )<br> {<br>@@ -138,6 +139,7 @@ vlc_decoder_device_Create(vout_window_t *window)<br> free(name);<br> if (!priv->module)<br> {<br>+ vlc_objres_clear(VLC_OBJECT(&priv->device));<br> vlc_object_delete(&priv->device);<br> return NULL;<br> }<br>@@ -162,6 +164,7 @@ vlc_decoder_device_Release(vlc_decoder_device *device)<br> if (vlc_atomic_rc_dec(&priv->rc))<br> {<br> vlc_module_unload(priv->module, decoder_device_Close, device);<br>+ vlc_objres_clear(VLC_OBJECT(device));<br> vlc_object_delete(device);<br> }<br> }</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>