mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
Moved a check for NULL buffer from gst_pad_pull to be a little earlier.
Original commit message from CVS: Moved a check for NULL buffer from gst_pad_pull to be a little earlier. Fixed 2 bs_print format specifiers wtay, please check this and let me know if you would prefer changes like this to be pre-approved
This commit is contained in:
parent
2ef7c8b385
commit
d1aa5369f6
2 changed files with 6 additions and 6 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 4a7bc52a893bdd9fefa9fabe460c827822a9e0f2
|
||||
Subproject commit 2a7d1c564cbf64d94cb04fb8615afb761e89f80c
|
|
@ -145,14 +145,14 @@ gst_bytestream_get_next_buf (GstByteStream *bs)
|
|||
bs_print ("get_next_buf: pulling buffer");
|
||||
nextbuf = gst_pad_pull (bs->pad);
|
||||
|
||||
if (!nextbuf)
|
||||
return FALSE;
|
||||
|
||||
if (GST_IS_EVENT (nextbuf)) {
|
||||
bs->event = GST_EVENT (nextbuf);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!nextbuf)
|
||||
return FALSE;
|
||||
|
||||
ts = GST_BUFFER_TIMESTAMP (nextbuf);
|
||||
if (ts != GST_CLOCK_TIME_NONE)
|
||||
bs->last_ts = ts;
|
||||
|
@ -416,7 +416,7 @@ gst_bytestream_flush_fast (GstByteStream *bs, guint32 len)
|
|||
while (len > 0) {
|
||||
headbuf = GST_BUFFER (bs->buflist->data);
|
||||
|
||||
bs_print ("flush: analyzing buffer that's %d bytes long, offset %d", GST_BUFFER_SIZE (headbuf),
|
||||
bs_print ("flush: analyzing buffer that's %d bytes long, offset %llu", GST_BUFFER_SIZE (headbuf),
|
||||
GST_BUFFER_OFFSET (headbuf));
|
||||
|
||||
/* if there's enough to complete the flush */
|
||||
|
@ -625,7 +625,7 @@ gst_bytestream_print_status (GstByteStream * bs)
|
|||
buf = GST_BUFFER (walk->data);
|
||||
walk = g_slist_next (walk);
|
||||
|
||||
bs_print ("STATUS: buffer starts at %d and is %d bytes long", GST_BUFFER_OFFSET (buf), GST_BUFFER_SIZE (buf));
|
||||
bs_print ("STATUS: buffer starts at %llu and is %d bytes long", GST_BUFFER_OFFSET (buf), GST_BUFFER_SIZE (buf));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue