mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 17:46:50 +08:00
[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:
@@ -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 ()
|
||||
|
Reference in New Issue
Block a user