I have an application which is trying to handle the situation where the input video changes (e.g. from 1024x768 @ 60Hz to 1080P @ 60). I have it working for the most part, but sometimes when I attempt to tear down the omx interface because of a video input resolution change it will hang. Many times it hangs when trying to set the display handle state to idle or it may hang when trying to free the display handle or the display control handle. This seems to happen most of the time when changing from a lower resolution (1024x768) to a higher resolution (1080P). Is there an explanation for this behavior and is there a solution?