The patch caused some problems with XvMC (try for example skipping forward/backwards, or just fast forward playing). So I split it up into three separate patches and reworked the handling of buffers in the XvMC case, please review. Christian.