mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
srs-librtmp: finish the simple publish and play sample.
This commit is contained in:
parent
efa09102cf
commit
c1086f8a9d
6 changed files with 110 additions and 10 deletions
|
@ -677,7 +677,7 @@ int SrsSource::on_meta_data(SrsCommonMessage* msg, SrsOnMetaDataPacket* metadata
|
|||
cache_metadata = new SrsSharedPtrMessage();
|
||||
|
||||
// dump message to shared ptr message.
|
||||
if ((ret = cache_metadata->initialize(msg, payload, size)) != ERROR_SUCCESS) {
|
||||
if ((ret = cache_metadata->initialize(&msg->header, payload, size)) != ERROR_SUCCESS) {
|
||||
srs_error("initialize the cache metadata failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue