Make ff_rtsp_send_cmd simply call ff_rtsp_send_cmd_with_content
authorMartin Storsjö <martin@martin.st>
Wed, 24 Mar 2010 23:06:58 +0000 (23:06 +0000)
committerMartin Storsjö <martin@martin.st>
Wed, 24 Mar 2010 23:06:58 +0000 (23:06 +0000)
Originally committed as revision 22663 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index 62ba8b1..f466574 100644 (file)
@@ -1034,9 +1034,7 @@ void ff_rtsp_send_cmd(AVFormatContext *s,
                       const char *cmd, RTSPMessageHeader *reply,
                       unsigned char **content_ptr)
 {
-    ff_rtsp_send_cmd_async(s, cmd);
-
-    ff_rtsp_read_reply(s, reply, content_ptr, 0);
+    ff_rtsp_send_cmd_with_content(s, cmd, reply, content_ptr, NULL, 0);
 }
 
 void ff_rtsp_send_cmd_with_content(AVFormatContext *s,