videodec: get real state if we are in error
get_state will return imediately in eroror state.
This will make shutdown processs running to close handle before compoent change to loaded.
Then close handle will failed since component not in loaded state.