mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 03:46:11 +00:00
gst-libs/gst/rtp/gstrtpbuffer.c: with regular return and warning.
Original commit message from CVS: * gst-libs/gst/rtp/gstrtpbuffer.c: Replace g_return_if_val (as it could be disabled), with regular return and warning.
This commit is contained in:
parent
fb05ac73ed
commit
ff01787e4e
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-10-04 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* gst-libs/gst/rtp/gstrtpbuffer.c:
|
||||||
|
Replace g_return_if_val (as it could be disabled), with regular return
|
||||||
|
and warning.
|
||||||
|
|
||||||
2007-10-03 Stefan Kost <ensonic@users.sf.net>
|
2007-10-03 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* tests/check/pipelines/simple-launch-lines.c:
|
* tests/check/pipelines/simple-launch-lines.c:
|
||||||
|
|
|
@ -875,7 +875,10 @@ gst_rtp_buffer_get_payload_subbuffer (GstBuffer * buffer, guint offset,
|
||||||
|
|
||||||
plen = gst_rtp_buffer_get_payload_len (buffer);
|
plen = gst_rtp_buffer_get_payload_len (buffer);
|
||||||
/* we can't go past the length */
|
/* we can't go past the length */
|
||||||
g_return_val_if_fail (offset < plen, NULL);
|
if (G_UNLIKELY (offset < plen)) {
|
||||||
|
GST_WARNING ("offset=%u should be less then plen=%u", offset, plen);
|
||||||
|
return (NULL);
|
||||||
|
}
|
||||||
|
|
||||||
/* apply offset */
|
/* apply offset */
|
||||||
poffset = gst_rtp_buffer_get_header_len (buffer) + offset;
|
poffset = gst_rtp_buffer_get_header_len (buffer) + offset;
|
||||||
|
|
Loading…
Reference in a new issue