From a7531984c36cee76a008d24c77cf48b048fcd5a3 Mon Sep 17 00:00:00 2001
From: Wim Taymans <wim.taymans@gmail.com>
Date: Wed, 25 Apr 2007 10:07:12 +0000
Subject: [PATCH] gst/rtsp/rtspconnection.c: Read the channel byte as an
 unsigned byte.

Original commit message from CVS:
* gst/rtsp/rtspconnection.c: (rtsp_connection_receive):
Read the channel byte as an unsigned byte.
---
 ChangeLog                 | 5 +++++
 gst/rtsp/rtspconnection.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 90144eaf0b..05d29b0677 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-25  Wim Taymans  <wim@fluendo.com>
+
+	* gst/rtsp/rtspconnection.c: (rtsp_connection_receive):
+	Read the channel byte as an unsigned byte.
+
 2007-04-25  Wim Taymans  <wim@fluendo.com>
 
 	* gst/rtp/gstrtpL16depay.c: (gst_rtp_L16_depay_set_property):
diff --git a/gst/rtsp/rtspconnection.c b/gst/rtsp/rtspconnection.c
index b3dfba6538..e921a346a3 100644
--- a/gst/rtsp/rtspconnection.c
+++ b/gst/rtsp/rtspconnection.c
@@ -683,7 +683,7 @@ rtsp_connection_receive (RTSPConnection * conn, RTSPMessage * msg)
   res = RTSP_OK;
   /* parse first line and headers */
   while (res == RTSP_OK) {
-    gchar c;
+    guint8 c;
 
     /* read first character, this identifies data messages */
     RTSP_CHECK (rtsp_connection_read (conn, &c, 1), read_error);