mirror of
https://github.com/ossrs/srs.git
synced 2025-02-14 20:31:56 +00:00
for #328, fix hds compile error on mac.
This commit is contained in:
parent
03bcfd9960
commit
da56e4fbb9
4 changed files with 15 additions and 5 deletions
2
trunk/configure
vendored
2
trunk/configure
vendored
|
@ -173,7 +173,7 @@ if [ $SRS_EXPORT_LIBRTMP_PROJECT = NO ]; then
|
|||
"srs_app_pithy_print" "srs_app_reload" "srs_app_http_api" "srs_app_http_conn" "srs_app_http_hooks"
|
||||
"srs_app_json" "srs_app_ingest" "srs_app_ffmpeg" "srs_app_utility" "srs_app_dvr" "srs_app_edge"
|
||||
"srs_app_kbps" "srs_app_heartbeat" "srs_app_empty" "srs_app_http_client"
|
||||
"srs_app_recv_thread" "srs_app_security" "srs_app_statistic"
|
||||
"srs_app_recv_thread" "srs_app_security" "srs_app_statistic" "srs_app_hds"
|
||||
"srs_app_mpegts_udp" "srs_app_rtsp" "srs_app_listener")
|
||||
# add each modules for app
|
||||
for SRS_MODULE in $SRS_MODULES; do
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
3C1232E91AAEA5D000CE8F6C /* libcrypto.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C1232E71AAEA5D000CE8F6C /* libcrypto.a */; };
|
||||
3C1232EA1AAEA5D000CE8F6C /* libssl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C1232E81AAEA5D000CE8F6C /* libssl.a */; };
|
||||
3C1232ED1AAEA70F00CE8F6C /* libhttp_parser.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C1232EC1AAEA70F00CE8F6C /* libhttp_parser.a */; };
|
||||
3C1EE6AE1AB1055800576EE9 /* srs_app_hds.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3C1EE6AC1AB1055800576EE9 /* srs_app_hds.cpp */; };
|
||||
3C663F0E1AB0155100286D8B /* Makefile in Sources */ = {isa = PBXBuildFile; fileRef = 3C663F011AB0155100286D8B /* Makefile */; };
|
||||
3C663F0F1AB0155100286D8B /* srs_aac_raw_publish.c in Sources */ = {isa = PBXBuildFile; fileRef = 3C663F021AB0155100286D8B /* srs_aac_raw_publish.c */; };
|
||||
3C663F101AB0155100286D8B /* srs_audio_raw_publish.c in Sources */ = {isa = PBXBuildFile; fileRef = 3C663F031AB0155100286D8B /* srs_audio_raw_publish.c */; };
|
||||
|
@ -258,6 +259,8 @@
|
|||
3C1232F21AAEAC7000CE8F6C /* srs-api */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = "srs-api"; path = "../../../etc/init.d/srs-api"; sourceTree = "<group>"; };
|
||||
3C1232F31AAEAC7000CE8F6C /* srs-demo */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = "srs-demo"; path = "../../../etc/init.d/srs-demo"; sourceTree = "<group>"; };
|
||||
3C1232F41AAEAC7000CE8F6C /* srs-demo-19350 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = "srs-demo-19350"; path = "../../../etc/init.d/srs-demo-19350"; sourceTree = "<group>"; };
|
||||
3C1EE6AC1AB1055800576EE9 /* srs_app_hds.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = srs_app_hds.cpp; path = ../../../src/app/srs_app_hds.cpp; sourceTree = "<group>"; };
|
||||
3C1EE6AD1AB1055800576EE9 /* srs_app_hds.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = srs_app_hds.hpp; path = ../../../src/app/srs_app_hds.hpp; sourceTree = "<group>"; };
|
||||
3C663F011AB0155100286D8B /* Makefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.make; name = Makefile; path = ../../../research/librtmp/Makefile; sourceTree = "<group>"; };
|
||||
3C663F021AB0155100286D8B /* srs_aac_raw_publish.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = srs_aac_raw_publish.c; path = ../../../research/librtmp/srs_aac_raw_publish.c; sourceTree = "<group>"; };
|
||||
3C663F031AB0155100286D8B /* srs_audio_raw_publish.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = srs_audio_raw_publish.c; path = ../../../research/librtmp/srs_audio_raw_publish.c; sourceTree = "<group>"; };
|
||||
|
@ -433,6 +436,8 @@
|
|||
3C12325D1AAE81D900CE8F6C /* srs_app_forward.hpp */,
|
||||
3C12325E1AAE81D900CE8F6C /* srs_app_heartbeat.cpp */,
|
||||
3C12325F1AAE81D900CE8F6C /* srs_app_heartbeat.hpp */,
|
||||
3C1EE6AC1AB1055800576EE9 /* srs_app_hds.cpp */,
|
||||
3C1EE6AD1AB1055800576EE9 /* srs_app_hds.hpp */,
|
||||
3C1232601AAE81D900CE8F6C /* srs_app_hls.cpp */,
|
||||
3C1232611AAE81D900CE8F6C /* srs_app_hls.hpp */,
|
||||
3C1232621AAE81D900CE8F6C /* srs_app_http_api.cpp */,
|
||||
|
@ -651,6 +656,7 @@
|
|||
3C12324A1AAE81A400CE8F6C /* srs_rtsp_stack.cpp in Sources */,
|
||||
3C1232A51AAE81D900CE8F6C /* srs_app_json.cpp in Sources */,
|
||||
3C12329F1AAE81D900CE8F6C /* srs_app_http_api.cpp in Sources */,
|
||||
3C1EE6AE1AB1055800576EE9 /* srs_app_hds.cpp in Sources */,
|
||||
3C663F101AB0155100286D8B /* srs_audio_raw_publish.c in Sources */,
|
||||
3C663F111AB0155100286D8B /* srs_bandwidth_check.c in Sources */,
|
||||
3C1232A11AAE81D900CE8F6C /* srs_app_http_conn.cpp in Sources */,
|
||||
|
|
|
@ -21,7 +21,9 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <srs_app_hds.hpp>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <sys/types.h>
|
||||
|
@ -462,7 +464,9 @@ int SrsHds::flush_bootstrap()
|
|||
char *start_afrt = NULL;
|
||||
int size_afrt = 0;
|
||||
|
||||
abst.initialize(start_abst, size);
|
||||
if ((ret = abst.initialize(start_abst, size)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
// @see video_file_format_spec_v10_1
|
||||
// page: 46
|
||||
|
|
|
@ -25,6 +25,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#ifndef SRS_APP_HDS_HPP
|
||||
#define SRS_APP_HDS_HPP
|
||||
|
||||
#include <srs_core.hpp>
|
||||
|
||||
#include <list>
|
||||
|
||||
class SrsRequest;
|
||||
|
@ -32,8 +34,6 @@ class SrsSharedPtrMessage;
|
|||
class SrsHdsFragment;
|
||||
class SrsSource;
|
||||
|
||||
using namespace std;
|
||||
|
||||
class SrsHds
|
||||
{
|
||||
public:
|
||||
|
@ -52,7 +52,7 @@ private:
|
|||
void adjust_windows();
|
||||
|
||||
private:
|
||||
list<SrsHdsFragment *> fragments;
|
||||
std::list<SrsHdsFragment *> fragments;
|
||||
SrsHdsFragment *currentSegment;
|
||||
SrsSource *source;
|
||||
int fragment_index;
|
||||
|
|
Loading…
Reference in a new issue