xvmc: Replace frame_started by picture_structure
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Fri, 2 Sep 2011 14:20:02 +0000 (16:20 +0200)
committerChristian König <deathsimple@vodafone.de>
Sun, 4 Sep 2011 11:51:50 +0000 (13:51 +0200)
commita09754c15fc48e5fed347f478a301a02ee69fe8c
treea1d015250cc391e42dd173335a90eb3d75f3e6ba
parent0a00a9a05b357dafae86bf8af879aa601f101eba
xvmc: Replace frame_started by picture_structure

The preferred solution to keeping track of the picture structure
has been putting it in the state tracker, so use picture_structure
instead of frame_started to check if a frame needs to begin.

If picture_structure has been changed, end the frame and start again.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/state_trackers/xorg/xvmc/surface.c
src/gallium/state_trackers/xorg/xvmc/xvmc_private.h