comparison rtsp.c @ 5693:bb370e798845 libavformat

Cosmetics: reindent
author mstorsjo
date Mon, 22 Feb 2010 19:47:22 +0000
parents 87b26ad577c5
children 70bd52594e2b
comparison
equal deleted inserted replaced
5692:87b26ad577c5 5693:bb370e798845
878 len -= len1; 878 len -= len1;
879 } 879 }
880 } 880 }
881 881
882 int rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply, 882 int rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
883 unsigned char **content_ptr, 883 unsigned char **content_ptr,
884 int return_on_interleaved_data) 884 int return_on_interleaved_data)
885 { 885 {
886 RTSPState *rt = s->priv_data; 886 RTSPState *rt = s->priv_data;
887 char buf[4096], buf1[1024], *q; 887 char buf[4096], buf1[1024], *q;
888 unsigned char ch; 888 unsigned char ch;
889 const char *p; 889 const char *p;
965 965
966 return 0; 966 return 0;
967 } 967 }
968 968
969 void rtsp_send_cmd_with_content_async(AVFormatContext *s, 969 void rtsp_send_cmd_with_content_async(AVFormatContext *s,
970 const char *cmd, 970 const char *cmd,
971 const unsigned char *send_content, 971 const unsigned char *send_content,
972 int send_content_length) 972 int send_content_length)
973 { 973 {
974 RTSPState *rt = s->priv_data; 974 RTSPState *rt = s->priv_data;
975 char buf[4096], buf1[1024]; 975 char buf[4096], buf1[1024];
976 976
977 rt->seq++; 977 rt->seq++;
1002 { 1002 {
1003 rtsp_send_cmd_with_content_async(s, cmd, NULL, 0); 1003 rtsp_send_cmd_with_content_async(s, cmd, NULL, 0);
1004 } 1004 }
1005 1005
1006 void rtsp_send_cmd(AVFormatContext *s, 1006 void rtsp_send_cmd(AVFormatContext *s,
1007 const char *cmd, RTSPMessageHeader *reply, 1007 const char *cmd, RTSPMessageHeader *reply,
1008 unsigned char **content_ptr) 1008 unsigned char **content_ptr)
1009 { 1009 {
1010 rtsp_send_cmd_async(s, cmd); 1010 rtsp_send_cmd_async(s, cmd);
1011 1011
1012 rtsp_read_reply(s, reply, content_ptr, 0); 1012 rtsp_read_reply(s, reply, content_ptr, 0);
1013 } 1013 }
1014 1014
1015 void rtsp_send_cmd_with_content(AVFormatContext *s, 1015 void rtsp_send_cmd_with_content(AVFormatContext *s,
1016 const char *cmd, 1016 const char *cmd,
1017 RTSPMessageHeader *reply, 1017 RTSPMessageHeader *reply,
1018 unsigned char **content_ptr, 1018 unsigned char **content_ptr,
1019 const unsigned char *send_content, 1019 const unsigned char *send_content,
1020 int send_content_length) 1020 int send_content_length)
1021 { 1021 {
1022 rtsp_send_cmd_with_content_async(s, cmd, send_content, send_content_length); 1022 rtsp_send_cmd_with_content_async(s, cmd, send_content, send_content_length);
1023 1023
1024 rtsp_read_reply(s, reply, content_ptr, 0); 1024 rtsp_read_reply(s, reply, content_ptr, 0);
1025 } 1025 }