Changeset 164

Show
Ignore:
Timestamp:
09/17/07 19:47:11 (1 year ago)
Author:
sip
Message:

Set write format and added debug info

Files:

Legend:

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

    r157 r164  
    283283        *q = ntohs(sendAddr.sin_port); 
    284284 
     285        ast_log(LOG_DEBUG,"-GetUdpPorts [%d,%d]\n",*p,*q); 
    285286 
    286287        /* Create audio sockets */ 
     
    300301                getsockname(*b,(struct sockaddr *)&sendAddr,&len); 
    301302                *q = ntohs(sendAddr.sin_port); 
     303 
     304                ast_log(LOG_DEBUG,"-GetUdpPorts [%d,%d]\n",*p,*q); 
    302305        } 
    303306} 
     
    10431046        { 
    10441047                /* log */ 
    1045                 ast_log(LOG_ERROR,"Couldn't connecting to %s:%d\n",ip,port); 
     1048                ast_log(LOG_ERROR,"Couldn't connect to %s:%d\n",ip,port); 
    10461049                /* end */ 
    10471050                goto rtsp_play_clean; 
     
    11951198                                                                /* Store control */ 
    11961199                                                                audioControl = sdp->audio->formats[i]->control; 
     1200                                                                /* Got a valid one */ 
     1201                                                                break; 
    11971202                                                        } 
    11981203                                                } 
     
    12141219                                                                /* Store control */ 
    12151220                                                                videoControl = sdp->video->formats[i]->control; 
     1221                                                                /* Got a valid one */ 
     1222                                                                break; 
    12161223                                                        } 
    12171224                                                } 
     1225 
     1226                                        /* Set write format */ 
     1227                                        ast_set_write_format(chan, audioFormat | videoFormat);   
    12181228 
    12191229                                        /* if audio track */ 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software