mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
appsrc: negotiate before popping buffer
First negotiate and then try to pop a buffer from the queue. This is just to improve the debug log.
This commit is contained in:
parent
d4ed3ddf6f
commit
ed6e7776f3
1 changed files with 5 additions and 4 deletions
|
@ -1008,15 +1008,16 @@ gst_app_src_create (GstBaseSrc * bsrc, guint64 offset, guint size,
|
|||
if (!g_queue_is_empty (priv->queue)) {
|
||||
guint buf_size;
|
||||
|
||||
*buf = g_queue_pop_head (priv->queue);
|
||||
buf_size = gst_buffer_get_size (*buf);
|
||||
|
||||
GST_DEBUG_OBJECT (appsrc, "we have buffer %p of size %u", *buf, buf_size);
|
||||
if (priv->new_caps) {
|
||||
gst_app_src_do_negotiate (bsrc);
|
||||
priv->new_caps = FALSE;
|
||||
}
|
||||
|
||||
*buf = g_queue_pop_head (priv->queue);
|
||||
buf_size = gst_buffer_get_size (*buf);
|
||||
|
||||
GST_DEBUG_OBJECT (appsrc, "we have buffer %p of size %u", *buf, buf_size);
|
||||
|
||||
priv->queued_bytes -= buf_size;
|
||||
|
||||
/* only update the offset when in random_access mode */
|
||||
|
|
Loading…
Reference in a new issue