mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #367: extract the process from ffmpeg to exec programs.
This commit is contained in:
parent
3a8c03a471
commit
0e1861b084
8 changed files with 377 additions and 196 deletions
|
@ -920,7 +920,11 @@ extern int srs_human_print_rtmp_packet4(char type, u_int32_t timestamp, char* da
|
|||
|
||||
// log to console, for use srs-librtmp application.
|
||||
extern const char* srs_human_format_time();
|
||||
|
||||
|
||||
#ifndef _WIN32
|
||||
// for getpid.
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
// when disabled log, donot compile it.
|
||||
#ifdef SRS_DISABLE_LOG
|
||||
#define srs_human_trace(msg, ...) (void)0
|
||||
|
@ -936,15 +940,13 @@ extern const char* srs_human_format_time();
|
|||
**************************************************************
|
||||
* IO hijack, use your specified io functions.
|
||||
**************************************************************
|
||||
*************************************************************/
|
||||
*************************************************************/
|
||||
// the void* will convert to your handler for io hijack.
|
||||
typedef void* srs_hijack_io_t;
|
||||
#ifdef SRS_HIJACK_IO
|
||||
#ifndef _WIN32
|
||||
// for iovec.
|
||||
#include <sys/uio.h>
|
||||
// for getpid.
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
/**
|
||||
* get the hijack io object in rtmp protocol sdk.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue