Changeset 24234
- Timestamp:
- 10/12/13 14:56:55 (9 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/ard.h
r24002 r24234 5 5 { 6 6 debug(99, "link %s", link); 7 int debuglevel = getconfigint("debuglevel", NULL); 7 8 char* ip = NULL, *pos = NULL, *path = NULL, *streamurl = NULL, *tmpstr = NULL; 8 9 … … 18 19 19 20 tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 20 if(getconfigint("debuglevel", NULL) == 99) 21 writesys("/tmp/ard1_tmpstr", tmpstr, 0); 21 titheklog(debuglevel, "/tmp/ard1_tmpstr", NULL, tmpstr); 22 22 23 23 // writesys("/var/usr/local/share/titan/plugins/tithek/ard1_tmpstr", tmpstr, 0); … … 49 49 free(ip), ip = NULL; 50 50 51 if(getconfigint("debuglevel", NULL) == 99) 52 writesys("/tmp/ard2_streamurl", streamurl, 0); 51 titheklog(debuglevel, "/tmp/ard2_streamurl", NULL, streamurl); 53 52 54 53 // segfault munmap_chunk(): invalid pointer -
titan/plugins/tithek/tithek_header.h
r24002 r24234 1 1 #ifndef TITHEK_HEADER_H 2 2 #define TITHEK_HEADER_H 3 4 void titheklog(int debuglevel, char* name1, char* name2, char* content) 5 { 6 char* tmpstr = NULL; 7 8 if(debuglevel != 99) return; 9 10 tmpstr = ostrcat(name1, name2, 0, 0); 11 writesys(tmpstr, content, 0); 12 free(tmpstr); 13 } 3 14 4 15 void screentithekplay(char* titheklink, char* title, int first);
Note: See TracChangeset
for help on using the changeset viewer.