ext/ffmpeg/gstffmpegprotocol.c: Yet Another Logic Error.

Original commit message from CVS:
* ext/ffmpeg/gstffmpegprotocol.c: (gst_ffmpegdata_peek):
Yet Another Logic Error.
This commit is contained in:
Ronald S. Bultje 2005-01-25 17:10:04 +00:00
parent 1a851d7ff6
commit ca9e8d1988
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-01-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegprotocol.c: (gst_ffmpegdata_peek):
Yet Another Logic Error.
2005-01-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net> 2005-01-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_negotiate): * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_negotiate):

View file

@ -102,7 +102,7 @@ gst_ffmpegdata_peek (URLContext * h, unsigned char *buf, int size)
info = (GstProtocolInfo *) h->priv_data; info = (GstProtocolInfo *) h->priv_data;
g_return_val_if_fail (info->flags == URL_RDONLY, -EIO); g_return_val_if_fail (info->flags == URL_RDONLY, AVERROR_IO);
bs = info->bs; bs = info->bs;
@ -164,7 +164,7 @@ gst_ffmpegdata_peek (URLContext * h, unsigned char *buf, int size)
if (will_get_eos) if (will_get_eos)
info->eos = TRUE; info->eos = TRUE;
} }
} while ((!info->eos && total != request) || have_event); } while ((!info->eos && total != request) && !have_event);
memcpy (buf, data, total); memcpy (buf, data, total);