From a2ce19ef7930303350698d1b684080b061a57d7c Mon Sep 17 00:00:00 2001 From: Stefan Holst Date: Mon, 16 Dec 2002 21:50:54 +0000 Subject: real streaming fixes: - removing exit()s from pnm.c - server error message retrieving fixed in pnm.c - handling of server messages in rtsp CVS patchset: 3564 CVS date: 2002/12/16 21:50:54 --- src/input/libreal/real.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/input/libreal/real.c') diff --git a/src/input/libreal/real.c b/src/input/libreal/real.c index 908629316..a239712b8 100644 --- a/src/input/libreal/real.c +++ b/src/input/libreal/real.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: real.c,v 1.2 2002/12/14 00:02:31 holstsn Exp $ + * $Id: real.c,v 1.3 2002/12/16 21:50:54 holstsn Exp $ * * special functions for real streams. * adopted from joschkas real tools. @@ -895,7 +895,15 @@ rmff_header_t *real_setup_and_get_header(rtsp_t *rtsp_session, uint32_t bandwid rtsp_schedule_field(rtsp_session, "Require: com.real.retain-entity-for-setup"); status=rtsp_request_describe(rtsp_session,NULL); - if (status != 200) return NULL; + if ( status<200 || status>299 ) + { + char *alert=rtsp_search_answers(rtsp_session,"Alert"); + if (alert) { + printf("real: got message from server:\n%s\n", alert); + } + rtsp_send_ok(rtsp_session); + return NULL; + } /* receive description */ size=0; -- cgit v1.2.3