]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add notes about embedded ast_frame structs holding a format ref. 81/4781/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 10 Jan 2017 23:48:39 +0000 (17:48 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 24 Jan 2017 19:37:36 +0000 (13:37 -0600)
mod_format.h: Note ast_filestream.fr holds a format ref.

translate.h: Note ast_trans_pvt.f holds a format ref.

Change-Id: I86bda354d725207b41e08920355d7c31b2d7f749

include/asterisk/mod_format.h
include/asterisk/translate.h

index bcd31deaad48bc777d0e848169eba8c289522742..7e05a282b58b5c8e94ad5c9698de8cd04747dac5 100644 (file)
@@ -114,7 +114,11 @@ struct ast_filestream {
        int lasttimeout;
        struct ast_channel *owner;
        FILE *f;
-       struct ast_frame fr;    /*!< frame produced by read, typically */
+       /*!
+        * \brief frame produced by read, typically
+        * \note This frame holds a fr.subclass.format ref.
+        */
+       struct ast_frame fr;
        char *buf;              /*!< buffer pointed to by ast_frame; */
        void *_private; /*!< pointer to private buffer */
        const char *orig_chan_name;
index b8cd219713b5aebe61a825de96cf2887e697d30a..fe3b040e63bb203b96e00f09934e8b9a8bac4b59 100644 (file)
@@ -208,7 +208,7 @@ struct ast_translator {
  */
 struct ast_trans_pvt {
        struct ast_translator *t;
-       struct ast_frame f;         /*!< used in frameout */
+       struct ast_frame f;         /*!< used in frameout.  This frame holds a f.subclass.format ref. */
        int samples;                /*!< samples available in outbuf */
        /*! \brief actual space used in outbuf */
        int datalen;