Lua extensions: Using "del_widget()" on an image via "input_changed()" causes VLC to crash
This bug seems to be kinda peculiar. When "input_changed()" tries to replace an image by first calling "del_widget()", VLC crashes. This doesn't happen with "meta_changed()", or if I click a button to replace the image manually.
Try out the attached extension to see what I mean. Each time you click the 'Change' button, the image will be replaced correctly. The same goes when changing between radio streams, but you must allow five seconds between attempts. (I intentionally added this constraint into the code, since many streams change the meta-data multiple times per track change.)
Now try changing between local audio or video files. You'll notice that VLC usually crashes after a couple of attempts while this extension is active.
Now disable the "dlg:del_widget(image)" line in the code and reload the extension in VLC. After changing between local audio or video files this time, you'll notice that VLC doesn't crash anymore.
This behaviour leads me to believe that there's something funny going on with the "input_changed()" function. Perhaps look for unexpected differences between it and "meta_changed()".