mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
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:
parent
df6a979243
commit
a6a3dd0790
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue