Chromecast: pointer being freed was not allocated
Adding the chromecast demux filter, I now get a crash when stopping chromecast output:
vlc-osx-static(41658,0x70000fdba000) malloc: *** error for object 0x50000000116618de: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Process 41658 stopped
* thread [#20](https://code.videolan.org/videolan/vlc/-/issues/20), stop reason = signal SIGABRT
frame [#0](https://code.videolan.org/videolan/vlc/-/issues/0): 0x00007fffe13f9d42 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill:
-> 0x7fffe13f9d42 <+10>: jae 0x7fffe13f9d4c ; <+20>
0x7fffe13f9d44 <+12>: movq %rax, %rdi
0x7fffe13f9d47 <+15>: jmp 0x7fffe13f2caf ; cerror_nocancel
0x7fffe13f9d4c <+20>: retq
(lldb) bt
* thread [#20](https://code.videolan.org/videolan/vlc/-/issues/20), stop reason = signal SIGABRT
* frame [#0](https://code.videolan.org/videolan/vlc/-/issues/0): 0x00007fffe13f9d42 libsystem_kernel.dylib`__pthread_kill + 10
frame [#1](https://code.videolan.org/videolan/vlc/-/issues/1): 0x00007fffe14e7457 libsystem_pthread.dylib`pthread_kill + 90
frame [#2](https://code.videolan.org/videolan/vlc/-/issues/2): 0x00007fffe135f420 libsystem_c.dylib`abort + 129
frame [#3](https://code.videolan.org/videolan/vlc/-/issues/3): 0x00007fffe144efe7 libsystem_malloc.dylib`free + 530
frame [#4](https://code.videolan.org/videolan/vlc/-/issues/4): 0x0000000100119653 libvlccore.dylib`vlc_meta_Delete(m=0x0000000116665e20) at meta.c:113 [opt]
frame [#5](https://code.videolan.org/videolan/vlc/-/issues/5): 0x0000000107634450 libmp4_plugin.dylib`Close(p_this=<unavailable>) at mp4.c:2126 [opt]
frame [#6](https://code.videolan.org/videolan/vlc/-/issues/6): 0x00000001000efc58 libvlccore.dylib`vlc_module_unload(obj=0x0000000115e8caf0, module=<unavailable>, deinit=<unavailable>) at modules.c:343 [opt]
frame [#7](https://code.videolan.org/videolan/vlc/-/issues/7): 0x0000000100108da1 libvlccore.dylib`demux_DestroyDemuxFilter [inlined] demux_Delete(p_demux=0x0000000115e8caf0) at demux.c:293 [opt]
frame [#8](https://code.videolan.org/videolan/vlc/-/issues/8): 0x0000000100108d95 libvlccore.dylib`demux_DestroyDemuxFilter(demux=<unavailable>) at demux.c:175 [opt]
frame [#9](https://code.videolan.org/videolan/vlc/-/issues/9): 0x0000000100108066 libvlccore.dylib`demux_Delete(p_demux=0x000000011324c7d0) at demux.c:295 [opt]
frame [#10](https://code.videolan.org/videolan/vlc/-/issues/10): 0x0000000100115ac9 libvlccore.dylib`End [inlined] InputSourceDestroy(in=0x000000010eeead60) at input.c:2578 [opt]
frame [#11](https://code.videolan.org/videolan/vlc/-/issues/11): 0x0000000100115abb libvlccore.dylib`End(p_input=<unavailable>) at input.c:1448 [opt]
frame [#12](https://code.videolan.org/videolan/vlc/-/issues/12): 0x000000010011601b libvlccore.dylib`Run(data=0x0000000100b060f0) at input.c:498 [opt]
frame [#13](https://code.videolan.org/videolan/vlc/-/issues/13): 0x00007fffe14e493b libsystem_pthread.dylib`_pthread_body + 180
frame [#14](https://code.videolan.org/videolan/vlc/-/issues/14): 0x00007fffe14e4887 libsystem_pthread.dylib`_pthread_start + 286
frame [#15](https://code.videolan.org/videolan/vlc/-/issues/15): 0x00007fffe14e408d libsystem_pthread.dylib`thread_start + 13