diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-04-14 01:42:55 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-04-14 01:42:55 +0000 |
commit | 1542ce59dccdfe08db9bba5f28251bd21cc637c4 (patch) | |
tree | db05aea83191488e2a5e798383a49401faa2780c | |
parent | 378928825cafeaf8d51208ddf4d882e9fb35b081 (diff) | |
download | xine-lib-1542ce59dccdfe08db9bba5f28251bd21cc637c4.tar.gz xine-lib-1542ce59dccdfe08db9bba5f28251bd21cc637c4.tar.bz2 |
fix a segfault
the problematic stream still does not play
mms://audio1.musicradio.com/Ad/BT.wma
CVS patchset: 6401
CVS date: 2004/04/14 01:42:55
-rw-r--r-- | src/input/mms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/mms.c b/src/input/mms.c index 812f1175c..110311b13 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.46 2004/04/06 06:45:47 tmattern Exp $ + * $Id: mms.c,v 1.47 2004/04/14 01:42:55 miguelfreitas Exp $ * * MMS over TCP protocol * based on work from major mms @@ -1175,12 +1175,12 @@ int mms_read (mms_t *this, char *data, int len) { bytes_left = this->buf_size - this->buf_read; if (bytes_left == 0) { + this->buf_size = this->buf_read = 0; if (!get_media_packet (this)) { xprintf (this->stream->xine, XINE_VERBOSITY_LOG, "libmms: get_media_packet failed\n"); return total; } - this->buf_read = 0; bytes_left = this->buf_size; } |