Changeset 164
- 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
| r157 |
r164 |
|
| 283 | 283 | *q = ntohs(sendAddr.sin_port); |
|---|
| 284 | 284 | |
|---|
| | 285 | ast_log(LOG_DEBUG,"-GetUdpPorts [%d,%d]\n",*p,*q); |
|---|
| 285 | 286 | |
|---|
| 286 | 287 | /* Create audio sockets */ |
|---|
| … | … | |
| 300 | 301 | getsockname(*b,(struct sockaddr *)&sendAddr,&len); |
|---|
| 301 | 302 | *q = ntohs(sendAddr.sin_port); |
|---|
| | 303 | |
|---|
| | 304 | ast_log(LOG_DEBUG,"-GetUdpPorts [%d,%d]\n",*p,*q); |
|---|
| 302 | 305 | } |
|---|
| 303 | 306 | } |
|---|
| … | … | |
| 1043 | 1046 | { |
|---|
| 1044 | 1047 | /* 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); |
|---|
| 1046 | 1049 | /* end */ |
|---|
| 1047 | 1050 | goto rtsp_play_clean; |
|---|
| … | … | |
| 1195 | 1198 | /* Store control */ |
|---|
| 1196 | 1199 | audioControl = sdp->audio->formats[i]->control; |
|---|
| | 1200 | /* Got a valid one */ |
|---|
| | 1201 | break; |
|---|
| 1197 | 1202 | } |
|---|
| 1198 | 1203 | } |
|---|
| … | … | |
| 1214 | 1219 | /* Store control */ |
|---|
| 1215 | 1220 | videoControl = sdp->video->formats[i]->control; |
|---|
| | 1221 | /* Got a valid one */ |
|---|
| | 1222 | break; |
|---|
| 1216 | 1223 | } |
|---|
| 1217 | 1224 | } |
|---|
| | 1225 | |
|---|
| | 1226 | /* Set write format */ |
|---|
| | 1227 | ast_set_write_format(chan, audioFormat | videoFormat); |
|---|
| 1218 | 1228 | |
|---|
| 1219 | 1229 | /* if audio track */ |
|---|
Download in other formats:
|
|