mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
commit
e7cb05d3b4
@ -128,6 +128,7 @@ API_EXPORT void API_CALL mk_media_source_find(const char *schema,
|
||||
const char *vhost,
|
||||
const char *app,
|
||||
const char *stream,
|
||||
int from_mp4,
|
||||
void *user_data,
|
||||
on_mk_media_source_find_cb cb);
|
||||
//MediaSource::for_each_media()
|
||||
|
@ -241,10 +241,11 @@ API_EXPORT void API_CALL mk_media_source_find(const char *schema,
|
||||
const char *vhost,
|
||||
const char *app,
|
||||
const char *stream,
|
||||
int from_mp4,
|
||||
void *user_data,
|
||||
on_mk_media_source_find_cb cb) {
|
||||
assert(schema && vhost && app && stream && cb);
|
||||
auto src = MediaSource::find(schema, vhost, app, stream);
|
||||
auto src = MediaSource::find(schema, vhost, app, stream, from_mp4);
|
||||
cb(user_data, src.get());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user