libs/gst/bytestream/bytestream.c: We should not shout that loud when len is 0. Just return 0 silently.

Original commit message from CVS:
2004-02-09  Julien MOUTTE <julien@moutte.net>

* libs/gst/bytestream/bytestream.c: (gst_bytestream_peek): We should
not shout that loud when len is 0. Just return 0 silently.
This commit is contained in:
Julien Moutte 2004-02-09 22:05:15 +00:00
parent df6a979243
commit a6a3dd0790
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-02-09 Julien MOUTTE <julien@moutte.net>
* libs/gst/bytestream/bytestream.c: (gst_bytestream_peek): We should
not shout that loud when len is 0. Just return 0 silently.
2004-02-09 Julien MOUTTE <julien@moutte.net>
* gst/gstdata.c: (gst_data_ref): Adding a categorized debug on data_ref

View file

@ -253,7 +253,9 @@ gst_bytestream_peek (GstByteStream *bs, GstBuffer **buf, guint32 len)
g_return_val_if_fail (bs != NULL, 0);
g_return_val_if_fail (buf != NULL, 0);
g_return_val_if_fail (len > 0, 0);
if (len == 0)
return 0;
GST_DEBUG ("peek: asking for %d bytes", len);