avcodec: use PRIx64 to print uint64_t
resource: simplify & reduce aout locking
aout: fix potential crash if changing device on aout being deleted
resource: add input_resource_ResetAout()
lib: reset the audio output when selecting amem or custom plugin