Changeset e2edb44547dfc882d42f687ba677203d0d6e0fa0
- Timestamp:
- 05/06/08 20:12:18
(3 months ago)
- Author:
- Ilkka Ollakka <ileoo@videolan.org>
- git-committer:
- Ilkka Ollakka <ileoo@videolan.org> 1210097538 +0300
- git-parent:
[aa5fe86aed9096e92e1f4b0affbb4f6c0c6080ff]
- git-author:
- Ilkka Ollakka <ileoo@videolan.org> 1210097501 +0300
- Message:
Adding some forgotten return-statements and removing some commented-out code.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| raa5fe86 |
re2edb44 |
|
| 83 | 83 | int i; |
|---|
| 84 | 84 | |
|---|
| 85 | | /*DOWN: |
|---|
| 86 | | p_access->info.i_update = 0; |
|---|
| 87 | | p_access->info.i_size = 0; |
|---|
| 88 | | p_access->info.i_pos = 0; |
|---|
| 89 | | p_access->info.b_eof = false; |
|---|
| 90 | | p_access->info.i_title = 0; |
|---|
| 91 | | p_access->info.i_seekpoint = 0; |
|---|
| 92 | | p_access->pf_read = Read; |
|---|
| 93 | | p_access->pf_block = Block; |
|---|
| 94 | | p_access->pf_control = Control; |
|---|
| 95 | | p_access->pf_seek = Seek; |
|---|
| 96 | | do |
|---|
| 97 | | { |
|---|
| 98 | | p_access->p_sys = (access_sys_t *) malloc( sizeof( access_sys_t ) ); |
|---|
| 99 | | if( !p_access->p_sys ) |
|---|
| 100 | | return VLC_ENOMEM; |
|---|
| 101 | | } while(0); |
|---|
| 102 | | p_sys = p_access->p_sys; |
|---|
| 103 | | memset( p_sys, 0, sizeof( access_sys_t ) ); |
|---|
| 104 | | */ |
|---|
| 105 | 85 | STANDARD_READ_ACCESS_INIT |
|---|
| 106 | 86 | |
|---|
| … | … | |
| 388 | 368 | } |
|---|
| 389 | 369 | } |
|---|
| 390 | | /*int i; |
|---|
| 391 | | for(i = 0; i < i_len_tmp; i += 16) |
|---|
| 392 | | { |
|---|
| 393 | | msg_Warn(p_access,"%.2x%.2x %.2x%.2x %.2x%.2x %.2x%.2x %.2x%.2x %.2x%.2x %.2x%.2x %.2x%.2x", |
|---|
| 394 | | p_buffer[i], p_buffer[i+1], p_buffer[i+2], p_buffer[i+3], p_buffer[i+4], p_buffer[i+5], p_buffer[i+6], p_buffer[i+7], |
|---|
| 395 | | p_buffer[i+8], p_buffer[i+9], p_buffer[i+10], p_buffer[i+11], p_buffer[i+12], p_buffer[i+13], p_buffer[i+14], p_buffer[i+15]); |
|---|
| 396 | | }*/ |
|---|
| 397 | 370 | if( i_len_tmp > 0 ) { |
|---|
| 398 | 371 | if( p_sys->p_thread->result_publish ) |
|---|
| … | … | |
| 413 | 386 | free( tmp_buffer ); |
|---|
| 414 | 387 | msg_Err( p_access, "failed send publish start" ); |
|---|
| | 388 | return -1; |
|---|
| 415 | 389 | } |
|---|
| 416 | 390 | free( rtmp_packet->body->body ); |
|---|
| … | … | |
| 434 | 408 | free( tmp_buffer ); |
|---|
| 435 | 409 | msg_Err( p_access, "failed send bytes read" ); |
|---|
| | 410 | return -1; |
|---|
| 436 | 411 | } |
|---|
| 437 | 412 | free( rtmp_packet->body->body ); |
|---|
| raa5fe86 |
re2edb44 |
|
| 229 | 229 | static void rtmp_handler_null ( rtmp_control_thread_t *p_thread, rtmp_packet_t *rtmp_packet ); |
|---|
| 230 | 230 | static void rtmp_handler_chunk_size ( rtmp_control_thread_t *p_thread, rtmp_packet_t *rtmp_packet ); |
|---|
| 231 | | static void rtmp_handler_invoke ( rtmp_control_thread_t *p_thread, rtmp_packet_t *rtmp_packet ); |
|---|
| | 231 | static int rtmp_handler_invoke ( rtmp_control_thread_t *p_thread, rtmp_packet_t *rtmp_packet ); |
|---|
| 232 | 232 | static void rtmp_handler_audio_data ( rtmp_control_thread_t *p_thread, rtmp_packet_t *rtmp_packet ); |
|---|
| 233 | 233 | static void rtmp_handler_video_data ( rtmp_control_thread_t *p_thread, rtmp_packet_t *rtmp_packet ); |
|---|
| … | … | |
| 1119 | 1119 | } |
|---|
| 1120 | 1120 | |
|---|
| 1121 | | static void |
|---|
| | 1121 | static int |
|---|
| 1122 | 1122 | rtmp_handler_invoke( rtmp_control_thread_t *p_thread, rtmp_packet_t *rtmp_packet ) |
|---|
| 1123 | 1123 | { |
|---|
| … | … | |
| 1154 | 1154 | free( tmp_buffer ); |
|---|
| 1155 | 1155 | msg_Err( p_thread, "failed send connection bandwith" ); |
|---|
| | 1156 | return VLC_EGENERIC; |
|---|
| 1156 | 1157 | } |
|---|
| 1157 | 1158 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1173 | 1174 | free( tmp_buffer ); |
|---|
| 1174 | 1175 | msg_Err( p_thread, "failed send server bandwith" ); |
|---|
| | 1176 | return VLC_EGENERIC; |
|---|
| 1175 | 1177 | } |
|---|
| 1176 | 1178 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1192 | 1194 | free( tmp_buffer ); |
|---|
| 1193 | 1195 | msg_Err( p_thread, "failed send clear stream" ); |
|---|
| | 1196 | return VLC_EGENERIC; |
|---|
| 1194 | 1197 | } |
|---|
| 1195 | 1198 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1211 | 1214 | free( tmp_buffer ); |
|---|
| 1212 | 1215 | msg_Err( p_thread, "failed send reply NetConnection.connect" ); |
|---|
| | 1216 | return VLC_EGENERIC; |
|---|
| 1213 | 1217 | } |
|---|
| 1214 | 1218 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1235 | 1239 | free( tmp_buffer ); |
|---|
| 1236 | 1240 | msg_Err( p_thread, "failed send reply createStream" ); |
|---|
| | 1241 | return VLC_EGENERIC; |
|---|
| 1237 | 1242 | } |
|---|
| 1238 | 1243 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1254 | 1259 | free( tmp_buffer ); |
|---|
| 1255 | 1260 | msg_Err( p_thread, "failed send reset stream" ); |
|---|
| | 1261 | return VLC_EGENERIC; |
|---|
| 1256 | 1262 | } |
|---|
| 1257 | 1263 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1273 | 1279 | free( tmp_buffer ); |
|---|
| 1274 | 1280 | msg_Err( p_thread, "failed send clear stream" ); |
|---|
| | 1281 | return VLC_EGENERIC; |
|---|
| 1275 | 1282 | } |
|---|
| 1276 | 1283 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1314 | 1321 | free( tmp_buffer ); |
|---|
| 1315 | 1322 | msg_Err( p_thread, "failed send reply NetStream.play.reset" ); |
|---|
| | 1323 | return VLC_EGENERIC; |
|---|
| 1316 | 1324 | } |
|---|
| 1317 | 1325 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1333 | 1341 | free( tmp_buffer ); |
|---|
| 1334 | 1342 | msg_Err( p_thread, "failed send reply NetStream.play.start" ); |
|---|
| | 1343 | return VLC_EGENERIC; |
|---|
| 1335 | 1344 | } |
|---|
| 1336 | 1345 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1464 | 1473 | free( rtmp_packet->body ); |
|---|
| 1465 | 1474 | free( rtmp_packet ); |
|---|
| | 1475 | return VLC_SUCCESS; |
|---|
| 1466 | 1476 | } |
|---|
| 1467 | 1477 | |
|---|