summaryrefslogtreecommitdiff
path: root/recordmydesktop/src
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-06-11 20:48:48 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-06-11 20:48:48 +0000
commitc70fb171db7a4b20c6511de37f487541b2409456 (patch)
tree561d55d00ba44b549ad7d62ab66ec6d0574e6acf /recordmydesktop/src
parentd4059173fd13d7bdd907c747742054ffeb358aee (diff)
get_frame.c:trivial commit,moved a declaration on top of the block, with the rest
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@351 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src')
-rw-r--r--recordmydesktop/src/get_frame.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/recordmydesktop/src/get_frame.c b/recordmydesktop/src/get_frame.c
index cdd910f..98593ed 100644
--- a/recordmydesktop/src/get_frame.c
+++ b/recordmydesktop/src/get_frame.c
@@ -106,8 +106,9 @@ void *GetFrame(ProgData *pdata){
XShmSegmentInfo shminfo,shminfo_back;//info structure for the image above.
int init_img1=0,init_img2=0,
img_sel,d_buff;
- img_sel=d_buff=0/*pdata->args.full_shots*/;
+ char *pxl_data=NULL,*pxl_data_back=NULL;
+ img_sel=d_buff=0/*pdata->args.full_shots*/;
// XVisualInfo vinfo_return;
// XMatchVisualInfo(pdata->dpy,pdata->specs.screen,pdata->specs.depth,TrueColor,&vinfo_return );
// GLXContext ctx=glXCreateContext( pdata->dpy,
@@ -120,7 +121,7 @@ void *GetFrame(ProgData *pdata){
//
// glReadBuffer(GL_FRONT);
- char *pxl_data=NULL,*pxl_data_back=NULL;
+
if((init_img1=FirstFrame(pdata,&image,&shminfo,&pxl_data)!=0)){
if(pdata->args.encOnTheFly){
if(remove(pdata->args.filename)){
© All Rights Reserved