mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #299, refine the codec object name
This commit is contained in:
parent
d7458c4e72
commit
caf69f193d
29 changed files with 731 additions and 699 deletions
|
@ -200,7 +200,7 @@ int srs_do_rtmp_create_msg(char type, uint32_t timestamp, char* data, int size,
|
|||
*ppmsg = NULL;
|
||||
T* msg = NULL;
|
||||
|
||||
if (type == SrsCodecFlvTagAudio) {
|
||||
if (type == SrsFrameTypeAudio) {
|
||||
SrsMessageHeader header;
|
||||
header.initialize_audio(size, timestamp, stream_id);
|
||||
|
||||
|
@ -209,7 +209,7 @@ int srs_do_rtmp_create_msg(char type, uint32_t timestamp, char* data, int size,
|
|||
srs_freep(msg);
|
||||
return ret;
|
||||
}
|
||||
} else if (type == SrsCodecFlvTagVideo) {
|
||||
} else if (type == SrsFrameTypeVideo) {
|
||||
SrsMessageHeader header;
|
||||
header.initialize_video(size, timestamp, stream_id);
|
||||
|
||||
|
@ -218,7 +218,7 @@ int srs_do_rtmp_create_msg(char type, uint32_t timestamp, char* data, int size,
|
|||
srs_freep(msg);
|
||||
return ret;
|
||||
}
|
||||
} else if (type == SrsCodecFlvTagScript) {
|
||||
} else if (type == SrsFrameTypeScript) {
|
||||
SrsMessageHeader header;
|
||||
header.initialize_amf0_script(size, stream_id);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue