mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
appsrc: Fix docs typo
Fix typo empty-percent to min-percent
This commit is contained in:
parent
1eb9c5b309
commit
a75e47e815
1 changed files with 2 additions and 2 deletions
|
@ -373,7 +373,7 @@ gst_app_src_class_init (GstAppSrcClass * klass)
|
|||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/**
|
||||
* GstAppSrc::empty-percent:
|
||||
* GstAppSrc::min-percent:
|
||||
*
|
||||
* Make appsrc emit the "need-data" signal when the amount of bytes in the
|
||||
* queue drops below this percentage of max-bytes.
|
||||
|
@ -1243,7 +1243,7 @@ gst_app_src_create (GstBaseSrc * bsrc, guint64 offset, guint size,
|
|||
if ((priv->wait_status & APP_WAITING))
|
||||
g_cond_broadcast (&priv->cond);
|
||||
|
||||
/* see if we go lower than the empty-percent */
|
||||
/* see if we go lower than the min-percent */
|
||||
if (priv->min_percent && priv->max_bytes) {
|
||||
if (priv->queued_bytes * 100 / priv->max_bytes <= priv->min_percent)
|
||||
/* ignore flushing state, we got a buffer and we will return it now.
|
||||
|
|
Loading…
Reference in a new issue