opengl rendering video by cuda opengl interop

hello to everyone
i’m using cuda for my computation in image processing.
i want to use cuda opengl interoperability to accelerate displaying the result. for displaying a single image i dont have any problem,but the problem is when i want to display a video by using cuda opengl interop. i have read the cudagldecode sample but i did not get the solution.

please help me for solving this problem.
thanks.