summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2004-04-04 12:19:06 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2004-04-04 12:19:06 +0000
commitec4796772a41b2ca7cf2788547a280d92989bbf2 (patch)
tree4ae26b515432f9a8eec2996b8b4ad042888f874a
parent84afad95e2860605ed3c975f7884b88098e51b8d (diff)
downloadxine-lib-ec4796772a41b2ca7cf2788547a280d92989bbf2.tar.gz
xine-lib-ec4796772a41b2ca7cf2788547a280d92989bbf2.tar.bz2
Fix "1e" command handling.
CVS patchset: 6328 CVS date: 2004/04/04 12:19:06
-rw-r--r--src/input/mms.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/input/mms.c b/src/input/mms.c
index f53e41e4e..a101e1324 100644
--- a/src/input/mms.c
+++ b/src/input/mms.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: mms.c,v 1.42 2004/04/03 18:34:53 tmattern Exp $
+ * $Id: mms.c,v 1.43 2004/04/04 12:19:06 tmattern Exp $
*
* MMS over TCP protocol
* based on work from major mms
@@ -1073,14 +1073,14 @@ static int get_media_packet (mms_t *this) {
if (command == 0x1b) {
send_command (this, 0x1b, 0, 0, 0);
} else if (command == 0x1e) {
- lprintf ("end of the current stream.\n");
+ uint32_t error_code;
- /* might be followed by a new stream cmd 0x20 */
- if (!this->live_flag) {
- lprintf ("not a live stream, .\n");
+ /* Warning: sdp is incomplete. Do not stop if error_code==1 */
+ error_code = LE_32(this->buf + 28);
+ lprintf ("End of the current stream. Continue=%d\n", error_code);
+
+ if (!error_code) {
return 0;
- } else {
- lprintf ("live stream, continue.\n");
}
} else if (command == 0x20) {