Changeset 9f427214afc526023b6841c527811add76b0bdd3
- Timestamp:
- 05/10/08 19:20:51
(4 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1210440051 +0200
- git-parent:
[5c5e00162b13ee769e0dbd090057a70cfbd1218e]
- git-author:
- Miguel Angel Cabrera Moya <madmac2501@gmail.com> 1210279380 +0200
- Message:
Fixed error handling in function
Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re2edb44 |
r9f42721 |
|
| 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 int rtmp_handler_invoke ( 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 ); |
|---|
| 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 int |
|---|
| | 1121 | static void |
|---|
| 1122 | 1122 | rtmp_handler_invoke( rtmp_control_thread_t *p_thread, rtmp_packet_t *rtmp_packet ) |
|---|
| 1123 | 1123 | { |
|---|
| … | … | |
| 1149 | 1149 | if( i_ret != tmp_rtmp_packet->length_encoded ) |
|---|
| 1150 | 1150 | { |
|---|
| 1151 | | free( tmp_rtmp_packet->body->body ); |
|---|
| 1152 | | free( tmp_rtmp_packet->body ); |
|---|
| 1153 | | free( tmp_rtmp_packet ); |
|---|
| 1154 | | free( tmp_buffer ); |
|---|
| 1155 | 1151 | msg_Err( p_thread, "failed send connection bandwith" ); |
|---|
| 1156 | | return VLC_EGENERIC; |
|---|
| | 1152 | goto error; |
|---|
| 1157 | 1153 | } |
|---|
| 1158 | 1154 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1169 | 1165 | if( i_ret != tmp_rtmp_packet->length_encoded ) |
|---|
| 1170 | 1166 | { |
|---|
| 1171 | | free( tmp_rtmp_packet->body->body ); |
|---|
| 1172 | | free( tmp_rtmp_packet->body ); |
|---|
| 1173 | | free( tmp_rtmp_packet ); |
|---|
| 1174 | | free( tmp_buffer ); |
|---|
| 1175 | 1167 | msg_Err( p_thread, "failed send server bandwith" ); |
|---|
| 1176 | | return VLC_EGENERIC; |
|---|
| | 1168 | goto error; |
|---|
| 1177 | 1169 | } |
|---|
| 1178 | 1170 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1189 | 1181 | if( i_ret != tmp_rtmp_packet->length_encoded ) |
|---|
| 1190 | 1182 | { |
|---|
| 1191 | | free( tmp_rtmp_packet->body->body ); |
|---|
| 1192 | | free( tmp_rtmp_packet->body ); |
|---|
| 1193 | | free( tmp_rtmp_packet ); |
|---|
| 1194 | | free( tmp_buffer ); |
|---|
| 1195 | 1183 | msg_Err( p_thread, "failed send clear stream" ); |
|---|
| 1196 | | return VLC_EGENERIC; |
|---|
| | 1184 | goto error; |
|---|
| 1197 | 1185 | } |
|---|
| 1198 | 1186 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1209 | 1197 | if( i_ret != tmp_rtmp_packet->length_encoded ) |
|---|
| 1210 | 1198 | { |
|---|
| 1211 | | free( tmp_rtmp_packet->body->body ); |
|---|
| 1212 | | free( tmp_rtmp_packet->body ); |
|---|
| 1213 | | free( tmp_rtmp_packet ); |
|---|
| 1214 | | free( tmp_buffer ); |
|---|
| 1215 | 1199 | msg_Err( p_thread, "failed send reply NetConnection.connect" ); |
|---|
| 1216 | | return VLC_EGENERIC; |
|---|
| | 1200 | goto error; |
|---|
| 1217 | 1201 | } |
|---|
| 1218 | 1202 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1234 | 1218 | if( i_ret != tmp_rtmp_packet->length_encoded ) |
|---|
| 1235 | 1219 | { |
|---|
| 1236 | | free( tmp_rtmp_packet->body->body ); |
|---|
| 1237 | | free( tmp_rtmp_packet->body ); |
|---|
| 1238 | | free( tmp_rtmp_packet ); |
|---|
| 1239 | | free( tmp_buffer ); |
|---|
| 1240 | 1220 | msg_Err( p_thread, "failed send reply createStream" ); |
|---|
| 1241 | | return VLC_EGENERIC; |
|---|
| | 1221 | goto error; |
|---|
| 1242 | 1222 | } |
|---|
| 1243 | 1223 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1254 | 1234 | if( i_ret != tmp_rtmp_packet->length_encoded ) |
|---|
| 1255 | 1235 | { |
|---|
| 1256 | | free( tmp_rtmp_packet->body->body ); |
|---|
| 1257 | | free( tmp_rtmp_packet->body ); |
|---|
| 1258 | | free( tmp_rtmp_packet ); |
|---|
| 1259 | | free( tmp_buffer ); |
|---|
| 1260 | 1236 | msg_Err( p_thread, "failed send reset stream" ); |
|---|
| 1261 | | return VLC_EGENERIC; |
|---|
| | 1237 | goto error; |
|---|
| 1262 | 1238 | } |
|---|
| 1263 | 1239 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1274 | 1250 | if( i_ret != tmp_rtmp_packet->length_encoded ) |
|---|
| 1275 | 1251 | { |
|---|
| 1276 | | free( tmp_rtmp_packet->body->body ); |
|---|
| 1277 | | free( tmp_rtmp_packet->body ); |
|---|
| 1278 | | free( tmp_rtmp_packet ); |
|---|
| 1279 | | free( tmp_buffer ); |
|---|
| 1280 | 1252 | msg_Err( p_thread, "failed send clear stream" ); |
|---|
| 1281 | | return VLC_EGENERIC; |
|---|
| | 1253 | goto error; |
|---|
| 1282 | 1254 | } |
|---|
| 1283 | 1255 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1316 | 1288 | if( i_ret != tmp_rtmp_packet->length_encoded ) |
|---|
| 1317 | 1289 | { |
|---|
| 1318 | | free( tmp_rtmp_packet->body->body ); |
|---|
| 1319 | | free( tmp_rtmp_packet->body ); |
|---|
| 1320 | | free( tmp_rtmp_packet ); |
|---|
| 1321 | | free( tmp_buffer ); |
|---|
| 1322 | 1290 | msg_Err( p_thread, "failed send reply NetStream.play.reset" ); |
|---|
| 1323 | | return VLC_EGENERIC; |
|---|
| | 1291 | goto error; |
|---|
| 1324 | 1292 | } |
|---|
| 1325 | 1293 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1336 | 1304 | if( i_ret != tmp_rtmp_packet->length_encoded ) |
|---|
| 1337 | 1305 | { |
|---|
| 1338 | | free( tmp_rtmp_packet->body->body ); |
|---|
| 1339 | | free( tmp_rtmp_packet->body ); |
|---|
| 1340 | | free( tmp_rtmp_packet ); |
|---|
| 1341 | | free( tmp_buffer ); |
|---|
| 1342 | 1306 | msg_Err( p_thread, "failed send reply NetStream.play.start" ); |
|---|
| 1343 | | return VLC_EGENERIC; |
|---|
| | 1307 | goto error; |
|---|
| 1344 | 1308 | } |
|---|
| 1345 | 1309 | free( tmp_rtmp_packet->body->body ); |
|---|
| … | … | |
| 1473 | 1437 | free( rtmp_packet->body ); |
|---|
| 1474 | 1438 | free( rtmp_packet ); |
|---|
| 1475 | | return VLC_SUCCESS; |
|---|
| | 1439 | |
|---|
| | 1440 | return; |
|---|
| | 1441 | |
|---|
| | 1442 | error: |
|---|
| | 1443 | free( tmp_rtmp_packet->body->body ); |
|---|
| | 1444 | free( tmp_rtmp_packet->body ); |
|---|
| | 1445 | free( tmp_rtmp_packet ); |
|---|
| | 1446 | free( tmp_buffer ); |
|---|
| 1476 | 1447 | } |
|---|
| 1477 | 1448 | |
|---|