提交 06900930 编写于 作者: X Xinzheng Zhang

avmessage: move free logic out from ijkmp

上级 7db582d8
......@@ -664,6 +664,7 @@ void *ijkmp_set_weak_thiz(IjkMediaPlayer *mp, void *weak_thiz)
return prev_weak_thiz;
}
/* need to call msg_free_res for freeing the resouce obtained in msg */
int ijkmp_get_msg(IjkMediaPlayer *mp, AVMessage *msg, int block)
{
assert(mp);
......
......@@ -212,6 +212,7 @@ void *ijkmp_get_weak_thiz(IjkMediaPlayer *mp);
void *ijkmp_set_weak_thiz(IjkMediaPlayer *mp, void *weak_thiz);
/* return < 0 if aborted, 0 if no packet and > 0 if packet. */
/* need to call msg_free_res for freeing the resouce obtained in msg */
int ijkmp_get_msg(IjkMediaPlayer *mp, AVMessage *msg, int block);
#endif
......@@ -60,7 +60,7 @@
{
if (!msg)
return;
msg_free_res(&msg->_msg);
@synchronized(self) {
if ([_array count] <= 10)
[_array addObject:msg];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册