summaryrefslogtreecommitdiff
path: root/src/input/libreal/real.c
diff options
context:
space:
mode:
authorStefan Holst <holstsn@users.sourceforge.net>2002-12-16 21:50:54 +0000
committerStefan Holst <holstsn@users.sourceforge.net>2002-12-16 21:50:54 +0000
commita2ce19ef7930303350698d1b684080b061a57d7c (patch)
treeaac0eae2e0d973a9ba1ad922236fc29443da4c1c /src/input/libreal/real.c
parent97c8f6a9d8bbd13a1ef0e071f60009f5110ca210 (diff)
downloadxine-lib-a2ce19ef7930303350698d1b684080b061a57d7c.tar.gz
xine-lib-a2ce19ef7930303350698d1b684080b061a57d7c.tar.bz2
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
Diffstat (limited to 'src/input/libreal/real.c')
-rw-r--r--src/input/libreal/real.c12
1 files changed, 10 insertions, 2 deletions
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;