From 9e3aa102d7fa3ebcfedb5e86721ab7701b797196 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 18 Nov 2011 18:08:21 +0100 Subject: [PATCH] docs: update design doc also fix default alignment value (0 == no-alignment) --- docs/design/part-scheduling.txt | 25 ++++++++++++++++--------- gst/gstquery.c | 2 +- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/docs/design/part-scheduling.txt b/docs/design/part-scheduling.txt index e3fc9ec9db..2633072367 100644 --- a/docs/design/part-scheduling.txt +++ b/docs/design/part-scheduling.txt @@ -60,18 +60,25 @@ A sinkpad can ask the upstream srcpad for its scheduling attributes. It does this with the SCHEDULING query. - (out) "pull-mode", G_TYPE_BOOLEAN (default FALSE) - - if the pad can operate in pull mode, if this flag is not set the pad - will operate in push mode. + (out) "modes", G_TYPE_VALUE_ARRAY (default NULL) + - an array of GST_TYPE_PAD_MODE enums. Contains all the supported + scheduling modes. - (out) "random-access", G_TYPE_BOOLEAN (default FALSE) + (out) "flags", GST_TYPE_SCHEDULING_FLAGS (default 0) + + typedef enum { + GST_SCHEDULING_FLAG_SEEKABLE = (1 << 0), + GST_SCHEDULING_FLAG_SEQUENTIAL = (1 << 1) + } GstSchedulingFlags; + + _SEEKABLE: - the offset of a pull operation can be specified, if this flag is false, the offset should be -1, - - (out) "sequential", G_TYPE_BOOLEAN (default TRUE) - - suggest sequential access to the data. If random-access is specified, + + _SEQUENTIAL: + - suggest sequential access to the data. If _SEEKABLE is specified, seeks are allowed but should be avoided. This is common for network - streams. ( + streams. (out) "minsize", G_TYPE_INT (default 1) - the suggested minimum size of pull requests @@ -79,7 +86,7 @@ this with the SCHEDULING query. (out) "maxsize", G_TYPE_INT (default -1, unlimited) - the suggested maximum size of pull requests - (out) "align", G_TYPE_INT (default 1) + (out) "align", G_TYPE_INT (default 0) - the suggested alignment for the pull requests. diff --git a/gst/gstquery.c b/gst/gstquery.c index 17c5cf257a..6ab7526270 100644 --- a/gst/gstquery.c +++ b/gst/gstquery.c @@ -1885,7 +1885,7 @@ gst_query_new_scheduling (void) GST_QUARK (FLAGS), GST_TYPE_SCHEDULING_FLAGS, 0, GST_QUARK (MINSIZE), G_TYPE_INT, 1, GST_QUARK (MAXSIZE), G_TYPE_INT, -1, - GST_QUARK (ALIGN), G_TYPE_INT, 1, NULL); + GST_QUARK (ALIGN), G_TYPE_INT, 0, NULL); query = gst_query_new (GST_QUERY_SCHEDULING, structure); return query;