Changeset 25832


Ignore:
Timestamp:
02/02/14 21:03:01 (8 years ago)
Author:
obi
Message:

fix shooting

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r25830 r25832  
    22#define GLOBAL_H
    33
    4 //flag 0: video+gui
    5 //flag 1: video
    6 //flag 2: gui
     4//flag 0: video+gui+freez
     5//flag 1: video+gui
     6//flag 2: video
     7//flag 3: gui
    78
    89void screenshoot(int flag)
    910{
    1011        char* cmd = NULL;
    11 
    12         videofreeze(status.aktservice->videodev);
    13 
    14         if(flag == 0)
     12printf("flag: %d\n", flag);
     13        if(flag == 0 || flag == 2)
     14                videofreeze(status.aktservice->videodev);
     15
     16        if(flag == 0 || flag == 1)
    1517                cmd = ostrcat("/sbin/grab -j 100 -r 960", NULL, 0, 0);
    16         else if(flag == 1)
     18        else if(flag == 2)
    1719                cmd = ostrcat("/sbin/grab -v -j 100 -r 960", NULL, 0, 0);
    18         else if(flag == 2)
     20        else if(flag == 3)
    1921                cmd = ostrcat("/sbin/grab -o -j 100 -r 960", NULL, 0, 0);
    2022
     
    2224                system(cmd);
    2325
    24         videocontinue(status.aktservice->videodev);
     26        if(flag == 0 || flag == 2)
     27                videocontinue(status.aktservice->videodev);
    2528       
    2629        free(cmd), cmd = NULL;
  • titan/titan/httpdfunc.h

    r25830 r25832  
    15841584void webgetshoot(char* param, int fmt)
    15851585{
    1586         screenshoot(0);
     1586        printf("param: %s\n",param);
     1587        printf("parm: %d\n",fmt);
     1588        screenshoot(atoi(param));
    15871589}
    15881590
Note: See TracChangeset for help on using the changeset viewer.