Changeset 187

Show
Ignore:
Timestamp:
11/20/07 12:20:40 (10 months ago)
Author:
sip
Message:

Modified mallocd value fixed memory leak.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • app_mp4/app_mp4.c

    r176 r187  
    271271        f->data = (void*)f + AST_FRIENDLY_OFFSET; 
    272272        f->datalen = 1500; 
    273         f->src = p->src
     273        f->src = strdup(p->src)
    274274 
    275275        /* Set type */ 
     
    279279        f->delivery.tv_usec = 0; 
    280280        f->delivery.tv_sec = 0; 
    281         f->mallocd = 0
     281        f->mallocd = AST_MALLOCD_HDR | AST_MALLOCD_SRC
    282282 
    283283        /* If it's video set the mark of last rtp packet */ 
  • app_rtsp/app_rtsp.c

    r179 r187  
    14031403                        sendFrame->data = rtpBuffer+ini; 
    14041404                        sendFrame->datalen = rtpLen-ini; 
    1405                         sendFrame->src = src
     1405                        sendFrame->src = strdup(src)
    14061406 
    14071407                        /* Depending on socket */ 
     
    14391439                        sendFrame->delivery.tv_usec = 0; 
    14401440                        sendFrame->delivery.tv_sec = 0; 
    1441                         sendFrame->mallocd = 0
     1441                        sendFrame->mallocd = AST_MALLOCD_HDR | AST_MALLOCD_SRC
    14421442                        /* Send frame */ 
    14431443                        ast_write(chan,sendFrame); 
  • app_transcoder/app_transcoder.c

    r124 r187  
    166166        send->subclass = AST_FORMAT_H263_PLUS | last; 
    167167        /* Rest of values*/ 
    168         send->src = "h324m"; 
     168        send->src = "transcoder"; 
    169169        send->delivery.tv_usec = 0; //(vtc->sent_bytes*8000)/vtc->bitrate; 
    170170        send->delivery.tv_sec = 0; 
    171         send->mallocd = 0
     171        send->mallocd = AST_MALLOCD_HDR
    172172 
    173173        /* Send */ 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software