Skip to content

Commit

Permalink
appsrc: Wake up the create() function on caps changes
Browse files Browse the repository at this point in the history
This allows the new caps to be sent downstream as soon as possible
instead of having to wait for the next buffer/buffer list.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/840>
  • Loading branch information
sdroege authored and tp-m committed Sep 30, 2020
1 parent 0e8a0cb commit 149dc1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gst-libs/gst/app/gstappsrc.c
Expand Up @@ -1457,6 +1457,9 @@ gst_app_src_set_caps (GstAppSrc * appsrc, const GstCaps * caps)
}
gst_queue_array_push_tail (priv->queue, new_caps);
gst_caps_replace (&priv->last_caps, new_caps);

if ((priv->wait_status & STREAM_WAITING))
g_cond_broadcast (&priv->cond);
}

GST_OBJECT_UNLOCK (appsrc);
Expand Down

0 comments on commit 149dc1e

Please sign in to comment.