Changeset 32751


Ignore:
Timestamp:
01/27/15 23:19:12 (9 years ago)
Author:
obi
Message:

fix

Location:
titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tmdb/tmdb.h

    r32750 r32751  
    443443                                                        if(filesize < 1500000)
    444444                                                        {
    445                                                                 char* cmd = NULL;
     445                                                                char* cmd = NULL, *size = NULL;
    446446#ifndef MIPSEL
    447447                                                                cmd = ostrcat(cmd, "ffmpeg -i ", 1, 0);
     
    458458                                                                cmd = ostrcat(cmd, tmpmeta, 1, 0);
    459459                                                                cmd = ostrcat(cmd, " | grep Stream | awk '{print $6}' | cut -d'x' -f1", 1, 0);
    460                                                                 char* size = string_newline(command(cmd));
     460                                                                size = string_newline(command(cmd));
    461461                                                                free(cmd), cmd = NULL; 
    462462                                                                debug(133, "size %s", size);
     
    618618                                if(filesize < 1500000)
    619619                                {
    620                                         char* cmd = NULL;
     620                                        char* cmd = NULL, *size = NULL;
    621621#ifndef MIPSEL
    622622                                        cmd = ostrcat(cmd, "ffmpeg -i ", 1, 0);
     
    633633                                        cmd = ostrcat(cmd, tmpmeta, 1, 0);
    634634                                        cmd = ostrcat(cmd, " | grep Stream | awk '{print $6}' | cut -d'x' -f1", 1, 0);
    635                                         char* size = string_newline(command(cmd));
     635                                        size = string_newline(command(cmd));
    636636                                        free(cmd), cmd = NULL;
    637637                                        debug(133, "size %s", size);
  • titan/titan/mediadb.h

    r32750 r32751  
    23632363                                debug(133, "filesize %lld", filesize);
    23642364                                free(cmd); cmd = NULL;
    2365                                                                
     2365                       
    23662366                                if(filesize < 1500000)
    23672367                                {
     2368                                        char* size = NULL;
    23682369#ifndef MIPSEL
    23692370                                        mediadbffmpeg4(timestamp, tmpmeta);
     
    23722373                                        cmd = ostrcat(cmd, tmpmeta, 1, 0);
    23732374                                        cmd = ostrcat(cmd, " | grep Stream | awk '{print $6}' | cut -d'x' -f1", 1, 0);
    2374                                         char* size = string_newline(command(cmd));
     2375                                        size = string_newline(command(cmd));
    23752376                                        free(cmd); cmd= NULL;
    23762377                                        debug(133, "size %s", size);
Note: See TracChangeset for help on using the changeset viewer.