Re #1822: Fixed unreleased memory pool of Android capture device stream.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5003 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
0c5a6be6b4
commit
5bba956ea5
|
@ -107,6 +107,7 @@ typedef struct and_stream
|
|||
pj_timestamp frame_ts; /**< Current timestamp */
|
||||
unsigned ts_inc; /**< Timestamp interval*/
|
||||
unsigned convert_to_i420; /**< Need to convert to I420?
|
||||
0: no
|
||||
1: from NV21
|
||||
2: from YV12 */
|
||||
|
||||
|
@ -1004,6 +1005,9 @@ static pj_status_t and_stream_destroy(pjmedia_vid_dev_stream *s)
|
|||
|
||||
jni_detach_env(with_attach);
|
||||
|
||||
if (strm->pool)
|
||||
pj_pool_release(strm->pool);
|
||||
|
||||
PJ_LOG(4, (THIS_FILE, "Android camera stream destroyed"));
|
||||
|
||||
return PJ_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue