On Tue, Nov 4, 2014 at 12:19 AM, Maksym Veremeyenko <ve...@m1stereo.tv>
wrote:

> Hi,
>
> during mem leak search i found that dumping pool state is helpfull, so i
> cutted pool stat code into separate function
>
> Subject: [PATCH] implement mlt_pool_stat

diff --git a/src/framework/mlt.vers b/src/framework/mlt.vers
> index 7c4a22c..bf273b1 100644
> --- a/src/framework/mlt.vers
> +++ b/src/framework/mlt.vers
> @@ -219,6 +219,7 @@ MLT_0.8.8 {
>      mlt_pool_purge;
>      mlt_pool_realloc;
>      mlt_pool_release;
> +    mlt_pool_stat;
>      mlt_producer_attach;
>      mlt_producer_clear;
>      mlt_producer_close;
>


You are not allowed to modify the symbols of an old version. You must make
a new block for the next version (MLT_0.9.4) that extends the current
version (MLT_0.9.2). Odd-numbered interim version numbers are not used here.

+ mlt_log( NULL, MLT_LOG_VERBOSE, "%s: count %d\n", __FUNCTION__, c);


Since you have to resubmit patch 0001, please use the preferred format of
logging calls: mlt_log_verbose(). Yes, I realize other parts of the code
are using mlt_log(), but I want new/changed code to use the preferred, more
succinct format.

Subject: [PATCH 2/3] descrease allocated pool items counter after purging it


Please correct the spelling error (decrease) and if you use a sentence,
which is preferred, then do capitalize the first word and end with a
period. I am willing to correct those if that is the only thing wrong in
the patch, as is the case here.


> Subject: [PATCH 3/3] calculate total bytes allocated and used by mlt_pool

+ mlt_log( NULL, MLT_LOG_VERBOSE, "%s: allocated %"PRId64" bytes, used
> %"PRId64" bytes \n",


Use sentence for commit message and use mlt_log_verbose().

Thank you, again, Maksym, for your valuable contributions.
+-DRD-+
------------------------------------------------------------------------------
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to