Hi, I am developing a small code to play a video file using SDL screen , now i want to GTK or GDK screen instead of SDL screen, but i am not able to calculate the buffer for the GTK. 2nd thing i used SDL_CreateRGBSurface to get screen->pixel , and draw

Hi,
I am developing a small code to play a video file using SDL screen ,now i
want to GTK or GDK screen instead of SDL screen,but i am not able to
calculate the buffer for the GTK.
2nd thing i used SDL_CreateRGBSurface to get screen->pixel ,and draw the
video on gdk_draw_rgb_image on the GTK window(176220) ,but got the problem
of screen height and width which is coming from avcodec(320
240).

so can anybody tell me how can i use GTK widget instead of SDL?
Help me…
If you want to see my test code, its as attachment.
Both code is there…1st is only using SDL
2nd is using SDL and GTK .

Waiting for your reply…
-------------- next part --------------
A non-text attachment was scrubbed…
Name: test_video_working.c
Type: text/x-csrc
Size: 5745 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070419/cc74ae11/attachment.c
-------------- next part --------------
A non-text attachment was scrubbed…
Name: main.c
Type: text/x-csrc
Size: 7867 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070419/cc74ae11/attachment-0001.c