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

For #913, APP support complex error.

This commit is contained in:
winlin 2018-01-01 19:39:57 +08:00
parent aebbbadf42
commit 6eae93258a
47 changed files with 1098 additions and 1432 deletions

View file

@ -40,7 +40,7 @@ public:
/**
* notify the handler, the type and tick.
*/
virtual int notify(int type, int interval, int64_t tick) = 0;
virtual srs_error_t notify(int type, int interval, int64_t tick) = 0;
};
/**
@ -87,11 +87,11 @@ public:
// add a pair of tick(type, interval).
// @param type the type of tick.
// @param interval the interval in ms of tick.
virtual int tick(int type, int interval);
virtual srs_error_t tick(int type, int interval);
public:
// cycle the hourglass, which will sleep resolution every time.
// and call handler when ticked.
virtual int cycle();
virtual srs_error_t cycle();
};
#endif