ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.7k stars 5.28k forks source link

SmartPtr: Support shared ptr for live source. v6.0.129 #4089

Closed winlinvip closed 1 week ago

winlinvip commented 2 weeks ago

Detail change log:

  1. [Simple,Refactor] Remove member fields of http entry, etc. https://github.com/ossrs/srs/pull/4089/commits/e34b3d3aa44f56b49c5c0b8e58c0285c4d9094d4
  2. [Ignore] Rename source to live_source. https://github.com/ossrs/srs/pull/4089/commits/846f95ec96f183909070c4b3f5ef0e9dd7d5448d
  3. [Ignore] Use directly ptr in consumer. https://github.com/ossrs/srs/pull/4089/commits/d38af021ad532ed9b4043c529dd5e54b9cbf5c01
  4. [Complex, Important] Use shared ptr for live source. https://github.com/ossrs/srs/pull/4089/commits/88f922413a1fb5cb920ab64f8b3805420932602a

The object relationship:

live-source

winlinvip commented 2 weeks ago

See https://github.com/ossrs/srs/discussions/3667#discussioncomment-8969107