libvlc_dialog_dismiss does not dismiss the login dialog the first time
I have been testing the libvlc_dialog_set_callbacks API, although I do see the same behaviour when using the VLC application.
If I setup the dialog callbacks then try and play an HTTP stream protected by username/password authentication, I get a dialog login callback as expected.
If I then invoke libvlc_dialog_dismiss with the given dialog id, it unexpectedly presents the login dialog again, so I get another login callback.
This time if I invoke libvlc_dialog_dismiss, it will dismiss the dialog as expected.
If I use the VLC application to play the same protected stream, it will do the same thing where I press Cancel in the first login dialog it will show another login dialog before it allows me to cancel.
This was tested on Linux with latest VLC from git, and the VLC 3.x and VLC 4.x applications.