1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Build: Fix module failed for main_ingest_hls and mp4_parser. v6.0.119 (#4005)

1. fix src/main/srs_main_ingest_hls.cpp compiling error;
2. fix src/main/srs_main_mp4_parser.cpp compiling error;
3. remove empty target srs_ingest_hls;

---------

Co-authored-by: winlin <winlinvip@gmail.com>
This commit is contained in:
Jacob Su 2024-03-26 16:26:12 +08:00 committed by GitHub
parent ff91757a3a
commit 2199fd2b88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 6 deletions

View file

@ -13,6 +13,7 @@
#include <srs_kernel_stream.hpp>
#include <srs_core_autofree.hpp>
#include <srs_app_config.hpp>
#include <srs_protocol_kbps.hpp>
#include <stdio.h>
#include <stdlib.h>
@ -30,9 +31,14 @@ SrsConfig* _srs_config = new SrsConfig();
// @global Other variables.
bool _srs_in_docker = false;
// Whether setup config by environment variables, see https://github.com/ossrs/srs/issues/2277
bool _srs_config_by_env = false;
// The binary name of SRS.
const char* _srs_binary = NULL;
extern SrsPps* _srs_pps_cids_get;
srs_error_t parse(std::string mp4_file, bool verbose)
{
srs_error_t err = srs_success;
@ -88,6 +94,8 @@ srs_error_t parse(std::string mp4_file, bool verbose)
int main(int argc, char** argv)
{
_srs_pps_cids_get = new SrsPps();
printf("SRS MP4 parser/%d.%d.%d, parse and show the mp4 boxes structure.\n",
VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION);