Changeset 25830


Ignore:
Timestamp:
02/02/14 18:46:56 (10 years ago)
Author:
obi
Message:

update screenshoot

Location:
titan/titan
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/adjust.h

    r25556 r25830  
    174174
    175175        addchoicebox(channellistview, "0", _("hidden"));
    176         addchoicebox(channellistview, "1", _("deactive"));
     176        addchoicebox(channellistview, "1", _("deaktiv"));
    177177        setchoiceboxselection(channellistview, getconfig("channellistview", NULL));
    178178
  • titan/titan/global.h

    r25774 r25830  
    11#ifndef GLOBAL_H
    22#define GLOBAL_H
     3
     4//flag 0: video+gui
     5//flag 1: video
     6//flag 2: gui
     7
     8void screenshoot(int flag)
     9{
     10        char* cmd = NULL;
     11
     12        videofreeze(status.aktservice->videodev);
     13
     14        if(flag == 0)
     15                cmd = ostrcat("/sbin/grab -j 100 -r 960", NULL, 0, 0);
     16        else if(flag == 1)
     17                cmd = ostrcat("/sbin/grab -v -j 100 -r 960", NULL, 0, 0);
     18        else if(flag == 2)
     19                cmd = ostrcat("/sbin/grab -o -j 100 -r 960", NULL, 0, 0);
     20
     21        if(cmd != NULL)
     22                system(cmd);
     23
     24        videocontinue(status.aktservice->videodev);
     25       
     26        free(cmd), cmd = NULL;
     27}
    328
    429//flag 0: playerstart
  • titan/titan/header.h

    r25644 r25830  
    810810char* getcolorformat(int line);
    811811void set_player_sound(int flag);
     812void screenshoot(int flag);
    812813
    813814//rcconfig.h
  • titan/titan/httpd.h

    r24696 r25830  
    354354        else if(ostrcmp(query, "getvideo") == 0)
    355355                buf = webgetvideo(param, *connfd, fmt);
    356   else if(ostrcmp(query, "videoplay") == 0 || ostrcmp(query, "videoplay=") == 0)
     356        else if(ostrcmp(query, "videoplay") == 0 || ostrcmp(query, "videoplay=") == 0)
    357357                buf = webvideo(param, fmt);
    358358        else if(ostrcmp(query, "getdrawcount") == 0)
  • titan/titan/httpdfunc.h

    r25106 r25830  
    15841584void webgetshoot(char* param, int fmt)
    15851585{
    1586         char* cmd = NULL;
    1587 /*
    1588         char* cmd = NULL, *tmpstr = NULL;
    1589 
    1590         if(status.aktservice->channel != NULL)
    1591         {
    1592                 m_lock(&status.waitrcmutex, 24);
    1593                 cmd = ostrcat(cmd, "grab.sh ", 1, 0);
    1594                 cmd = ostrcat(cmd, param, 1, 0);
    1595                 cmd = ostrcat(cmd, " ", 1, 0);
    1596                 cmd = ostrcat(cmd, getconfig("streamport", NULL), 1, 0);
    1597                 cmd = ostrcat(cmd, " ", 1, 0);
    1598                 tmpstr = oitoa(status.aktservice->channel->serviceid);
    1599                 cmd = ostrcat(cmd, tmpstr, 1, 0);
    1600                 free(tmpstr); tmpstr = NULL;
    1601                 cmd = ostrcat(cmd, ",", 1, 0);
    1602                 tmpstr = ollutoa(status.aktservice->channel->transponderid);
    1603                 cmd = ostrcat(cmd, tmpstr, 1, 0);
    1604                 free(tmpstr); tmpstr = NULL;
    1605                 cmd = ostrcat(cmd, " titan", 1, 0);
    1606                 cmd = ostrcat("/sbin/grab -o -j 40 -r 960", NULL, 1, 0);
    1607 
    1608                 m_unlock(&status.waitrcmutex, 24);
    1609         }
    1610 */
    1611 // use new grab osd + video
    1612         cmd = ostrcat("/sbin/grab -j 100 -r 960", NULL, 0, 0);
    1613 
    1614         if(cmd != NULL)
    1615                 system(cmd);
    1616         free(cmd);
     1586        screenshoot(0);
    16171587}
    16181588
Note: See TracChangeset for help on using the changeset viewer.