mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
baseparse: adjust _set_frame_prop documentation and set default as claimed
This commit is contained in:
parent
723059c688
commit
0707c189db
1 changed files with 5 additions and 7 deletions
|
@ -1634,7 +1634,7 @@ gst_base_parse_activate (GstBaseParse * parse, gboolean active)
|
||||||
parse->priv->discont = TRUE;
|
parse->priv->discont = TRUE;
|
||||||
parse->priv->flushing = FALSE;
|
parse->priv->flushing = FALSE;
|
||||||
parse->priv->offset = 0;
|
parse->priv->offset = 0;
|
||||||
parse->priv->update_interval = 0;
|
parse->priv->update_interval = 50;
|
||||||
parse->priv->fps_num = parse->priv->fps_den = 0;
|
parse->priv->fps_num = parse->priv->fps_den = 0;
|
||||||
parse->priv->frame_duration = GST_CLOCK_TIME_NONE;
|
parse->priv->frame_duration = GST_CLOCK_TIME_NONE;
|
||||||
parse->priv->seekable = GST_BASE_PARSE_SEEK_DEFAULT;
|
parse->priv->seekable = GST_BASE_PARSE_SEEK_DEFAULT;
|
||||||
|
@ -1853,12 +1853,10 @@ gst_base_parse_set_passthrough (GstBaseParse * parse, gboolean passthrough)
|
||||||
* @fps_den: frames per second (denominator).
|
* @fps_den: frames per second (denominator).
|
||||||
* @interval: duration update interval in frames.
|
* @interval: duration update interval in frames.
|
||||||
*
|
*
|
||||||
* If frames per second is configured, parser can provide for default @convert
|
* If frames per second is configured, parser can take care of buffer duration
|
||||||
* between GST_FORMAT_TIME and GST_FORMAT_BYTES, as well as buffer duration
|
* and timestamping. If #interval is non-zero (default), then stream duration
|
||||||
* and timestamping. However, even if this frame information is provided,
|
* is determined based on frame and byte counts, and updated every #interval
|
||||||
* subclass can still choose to provide for a @convert and set buffer metadata.
|
* frames.
|
||||||
* If #interval is non-zero (default), then stream duration is determined
|
|
||||||
* based on frame and byte counts, and updated every #interval frames.
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_base_parse_set_frame_props (GstBaseParse * parse, guint fps_num,
|
gst_base_parse_set_frame_props (GstBaseParse * parse, guint fps_num,
|
||||||
|
|
Loading…
Reference in a new issue