From 40099df3c020468f5dcf0104f259c3354506c4f7 Mon Sep 17 00:00:00 2001 From: Dw9 Date: Sun, 24 Jul 2022 08:51:11 +0800 Subject: [PATCH] =?UTF-8?q?c=20api=E6=94=AF=E6=8C=81=E4=BB=8Emp4=E6=8E=A8?= =?UTF-8?q?=E9=80=81rtp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/include/mk_events_objects.h | 1 + api/source/mk_events_objects.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/include/mk_events_objects.h b/api/include/mk_events_objects.h index ca8c289c..5913c080 100644 --- a/api/include/mk_events_objects.h +++ b/api/include/mk_events_objects.h @@ -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() diff --git a/api/source/mk_events_objects.cpp b/api/source/mk_events_objects.cpp index d95167e1..264e8992 100644 --- a/api/source/mk_events_objects.cpp +++ b/api/source/mk_events_objects.cpp @@ -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()); }