[mpp]: fix initial order issue

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@159 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-08-25 07:48:04 +00:00
parent 30d6a98bdf
commit 005d6da4fc

View File

@@ -83,21 +83,19 @@ Mpp::Mpp(MppCtxType type)
{
switch (type) {
case MPP_CTX_DEC : {
thread_start(thread_dec);
packets = new mpp_list((node_destructor)NULL);
frames = new mpp_list((node_destructor)mpp_frame_deinit);
thread_start(thread_dec);
} break;
case MPP_CTX_ENC : {
thread_start(thread_enc);
frames = new mpp_list((node_destructor)NULL);
packets = new mpp_list((node_destructor)mpp_packet_deinit);
thread_start(thread_enc);
} break;
default : {
mpp_err("Mpp error type %d\n", type);
} break;
}
if (thread_running) {
}
}
Mpp::~Mpp ()