Changeset 32751
- Timestamp:
- 01/27/15 23:19:12 (9 years ago)
- Location:
- titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tmdb/tmdb.h
r32750 r32751 443 443 if(filesize < 1500000) 444 444 { 445 char* cmd = NULL ;445 char* cmd = NULL, *size = NULL; 446 446 #ifndef MIPSEL 447 447 cmd = ostrcat(cmd, "ffmpeg -i ", 1, 0); … … 458 458 cmd = ostrcat(cmd, tmpmeta, 1, 0); 459 459 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)); 461 461 free(cmd), cmd = NULL; 462 462 debug(133, "size %s", size); … … 618 618 if(filesize < 1500000) 619 619 { 620 char* cmd = NULL ;620 char* cmd = NULL, *size = NULL; 621 621 #ifndef MIPSEL 622 622 cmd = ostrcat(cmd, "ffmpeg -i ", 1, 0); … … 633 633 cmd = ostrcat(cmd, tmpmeta, 1, 0); 634 634 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)); 636 636 free(cmd), cmd = NULL; 637 637 debug(133, "size %s", size); -
titan/titan/mediadb.h
r32750 r32751 2363 2363 debug(133, "filesize %lld", filesize); 2364 2364 free(cmd); cmd = NULL; 2365 2365 2366 2366 if(filesize < 1500000) 2367 2367 { 2368 char* size = NULL; 2368 2369 #ifndef MIPSEL 2369 2370 mediadbffmpeg4(timestamp, tmpmeta); … … 2372 2373 cmd = ostrcat(cmd, tmpmeta, 1, 0); 2373 2374 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)); 2375 2376 free(cmd); cmd= NULL; 2376 2377 debug(133, "size %s", size);
Note: See TracChangeset
for help on using the changeset viewer.