changeset 5882:005108a85bc3 libavformat

Make ff_rtsp_send_cmd simply call ff_rtsp_send_cmd_with_content
author mstorsjo
date Wed, 24 Mar 2010 23:06:58 +0000
parents fd67c6b9f915
children fd37c39041cd
files rtsp.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Wed Mar 24 22:44:06 2010 +0000
+++ b/rtsp.c	Wed Mar 24 23:06:58 2010 +0000
@@ -1034,9 +1034,7 @@
                       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,