[vlc-devel] [vlc-commits] decoder: add Destroy helper function for decoder owners
Jean-Baptiste Kempf
jb at videolan.org
Tue Feb 19 08:03:32 CET 2019
Hello,
On Tue, 19 Feb 2019, at 08:01, Steve Lhomme wrote:
> > I really prefer having a crash (via assert/ASAN) when a client is
> misusing an API (calling Destroy with a freed pointer) instead of
> ignoring it.
>
> This is true when calling Destroy twice is a bug. It isn't with this
Then assert() it.
This is not a libVLC API, where you need to deal with invalid input, and where assert is not enough.
--
Jean-Baptiste Kempf - President
+33 672 704 734
More information about the vlc-devel
mailing list