use refcount for decoding demuxes to check if they are in use