Changeset 17450


Ignore:
Timestamp:
08/08/12 23:43:24 (12 years ago)
Author:
obi
Message:

myvideo fix warnings

Location:
titan/plugins/tithek
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/libmd5/libmd5.h

    r17427 r17450  
    325325        {
    326326                MDInit (&context);
    327                 while (len = fread (buffer, 1, 1024, file))
     327                while ((len = fread(buffer, 1, 1024, file)))
    328328                {
    329329                        MDUpdate (&context, buffer, len);
  • titan/plugins/tithek/tithek.h

    r17449 r17450  
    3333};
    3434
    35 void rc4init(struct rc4ctx *ctx, unsigned char *key, size_t keylen);
    36 void rc4crypt(struct rc4ctx *ctx, unsigned char *data, size_t len);
    37 void rc4(unsigned char *data, size_t dlen, unsigned char *key, size_t klen);
     35void rc4init(struct rc4ctx *ctx, char *key, size_t keylen);
     36void rc4crypt(struct rc4ctx *ctx, char *data, size_t len);
     37void rc4(char *data, size_t dlen, char *key, size_t klen);
    3838
    3939#define SWAP(a,b) { unsigned char temp; temp = (a); (a) = (b); (b) = temp; }
    4040
    41 void rc4init(struct rc4ctx *ctx, unsigned char *key, size_t keylen)
     41void rc4init(struct rc4ctx *ctx, char *key, size_t keylen)
    4242{
    4343    int i;
     
    5454}
    5555
    56 void rc4crypt(struct rc4ctx *ctx, unsigned char *data, size_t len)
     56void rc4crypt(struct rc4ctx *ctx, char *data, size_t len)
    5757{
    5858    unsigned int i;
     
    7474}
    7575
    76 void rc4(unsigned char *data, size_t dlen, unsigned char *key, size_t klen)
     76void rc4(char *data, size_t dlen, char *key, size_t klen)
    7777{
    7878    struct rc4ctx ctx;
     
    798798        if(flag == 4)
    799799        {
    800                         printf("111111111111\n");       
    801800                int count = 0;
    802                 int i = 0;
    803801                struct splitstr* ret1 = NULL;
    804802                ret1 = strsplit(link, ";", &count);
    805803                if(ret1 != NULL)
    806804                {
    807                         printf("22222222222\n");       
    808 
    809805                        link = ostrcat(ret1[0].part, NULL, 0, 0);
    810806                        pageUrl = ostrcat(pageUrl, ret1[1].part, 1, 0);
    811807                        playpath = ostrcat(playpath, ret1[2].part, 1, 0);
    812                         printf("3333333333333\n");     
    813 
    814808                        video_id = ostrcat(video_id, ret1[3].part, 1, 0);
    815                         printf("4444444444444\n");     
    816                                                
     809
    817810                        printf("link: %s\n", link);
    818811                        printf("pageUrl: %s\n", pageUrl);
    819812                        printf("playpath: %s\n", playpath);                                                                                     
    820813                        printf("video_id: %s\n", video_id);                                                                                     
    821 
    822814                }
    823815                free(ret1), ret1 = NULL;
     
    963955
    964956                int count = 0;
    965                 int i = 0;
    966957                struct splitstr* ret1 = NULL;
    967958                ret1 = strsplit(tmpstr, "=", &count);
    968                 int hlen;
     959                int hlen = 0;
    969960
    970961                if(ret1 != NULL)
     
    10091000                if(ostrstr(tmpstr_uni, "connectionurl='rtmp"))
    10101001                {
    1011                         printf("found rtmpe url\n");
     1002                        printf("found rtmpe:// stream\n");
    10121003                        source = ostrcat(tmpstr_uni, NULL, 0, 0);
    10131004                        source = string_resub("source='", ".flv'", source, 0);
     
    10181009                        if(ostrstr(url, "myvideo2flash"))
    10191010                        {
    1020                                 printf("found rtmpt url\n");
     1011                                printf("change to rtmpt:// stream\n");
    10211012                                url = string_replace("rtmpe://", "rtmpt://", url, 1);
    10221013                        }
     
    10341025                else
    10351026                {               
    1036                         printf("tmpstr_uni not found rtmp: %s\n",tmpstr_uni);
     1027                        printf("rtmpe not found, change to *.flv stream\n");
    10371028                        source = ostrcat(tmpstr_uni, NULL, 0, 0);
    10381029                        source = string_resub("source='", "'", source, 0);
     
    10441035                }
    10451036
     1037                printf("close1\n");
    10461038                free(key); key = NULL;         
     1039                printf("close2\n");
    10471040                free(b64); b64 = NULL;         
     1041                printf("close3\n");
    10481042                free(url); url = NULL;
     1043                printf("close4\n");
    10491044                free(source); source = NULL;           
     1045                printf("close5\n");
    10501046                free(tmpstr_uni); tmpstr_uni = NULL;           
     1047                printf("close6\n");
    10511048                free(tmpstr); tmpstr = NULL;
     1049                printf("close7\n");
    10521050                free(pageUrl); pageUrl = NULL;         
     1051                printf("close8\n");
    10531052                free(playpath); playpath = NULL;
    10541053                debug(99, "streamurl: %s", streamurl);
Note: See TracChangeset for help on using the changeset viewer.