Author: spyfeng Date: Thu Jul 15 18:02:32 2010 New Revision: 5859 Log: remove retrying method because the bug has been fixed. retrying method is not the solution.
Modified: mms/mmst.c Modified: mms/mmst.c ============================================================================== --- mms/mmst.c Thu Jul 15 17:50:55 2010 (r5858) +++ mms/mmst.c Thu Jul 15 18:02:32 2010 (r5859) @@ -30,7 +30,6 @@ #define LOCAL_ADDRESS 0xc0a80081 // FIXME get and use correct local ip address. #define LOCAL_PORT 1037 // as above. -#define RETRY_TIMES 10 /** Client to server packet types. */ typedef enum { CS_PKT_INITIAL = 0x01, @@ -386,15 +385,12 @@ static int mms_safe_send_recv(MMSContext return ret; } } - for (i = 0; i < RETRY_TIMES; i++) { if ((type = get_tcp_server_response(mms)) != expect_type) { dprintf(NULL,"Unexpected packet type %d with type %d\n", type, expect_type); - //return -1; - usleep(50000); + return -1; } else { return 0; } - } return -1; } _______________________________________________ FFmpeg-soc mailing list FFmpeg-soc@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc