Skip to content

Commit

Permalink
appsrc: Add new max-buffers / max-time / current-level-buffers / curr…
Browse files Browse the repository at this point in the history
…ent-level-time properties

These work the same way as the corresponding properties on queue and
allow to control the internal buffer size of the appsrc in a more
flexible way.

Unlike in queue the max-buffers and max-time properties are 0 (i.e.
disabled) by default for backwards compatibility reasons.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1133>
  • Loading branch information
sdroege authored and GStreamer Marge Bot committed May 5, 2021
1 parent ca7a964 commit d987ec2
Show file tree
Hide file tree
Showing 3 changed files with 575 additions and 28 deletions.
56 changes: 56 additions & 0 deletions docs/plugins/gst_plugins_cache.json
Expand Up @@ -452,6 +452,20 @@
"type": "GstCaps",
"writable": true
},
"current-level-buffers": {
"blurb": "The number of currently queued buffers",
"conditionally-available": false,
"construct": false,
"construct-only": false,
"controllable": false,
"default": "0",
"max": "18446744073709551615",
"min": "0",
"mutable": "null",
"readable": true,
"type": "guint64",
"writable": false
},
"current-level-bytes": {
"blurb": "The number of currently queued bytes",
"conditionally-available": false,
Expand All @@ -466,6 +480,20 @@
"type": "guint64",
"writable": false
},
"current-level-time": {
"blurb": "The amount of currently queued time",
"conditionally-available": false,
"construct": false,
"construct-only": false,
"controllable": false,
"default": "0",
"max": "18446744073709551615",
"min": "0",
"mutable": "null",
"readable": true,
"type": "guint64",
"writable": false
},
"duration": {
"blurb": "The duration of the data stream in nanoseconds (GST_CLOCK_TIME_NONE if unknown)",
"conditionally-available": false,
Expand Down Expand Up @@ -528,6 +556,20 @@
"type": "gboolean",
"writable": true
},
"max-buffers": {
"blurb": "The maximum number of buffers to queue internally (0 = unlimited)",
"conditionally-available": false,
"construct": false,
"construct-only": false,
"controllable": false,
"default": "0",
"max": "18446744073709551615",
"min": "0",
"mutable": "null",
"readable": true,
"type": "guint64",
"writable": true
},
"max-bytes": {
"blurb": "The maximum number of bytes to queue internally (0 = unlimited)",
"conditionally-available": false,
Expand Down Expand Up @@ -556,6 +598,20 @@
"type": "gint64",
"writable": true
},
"max-time": {
"blurb": "The maximum amount of time to queue internally (0 = unlimited)",
"conditionally-available": false,
"construct": false,
"construct-only": false,
"controllable": false,
"default": "0",
"max": "18446744073709551615",
"min": "0",
"mutable": "null",
"readable": true,
"type": "guint64",
"writable": true
},
"min-latency": {
"blurb": "The minimum latency (-1 = default)",
"conditionally-available": false,
Expand Down

0 comments on commit d987ec2

Please sign in to comment.