mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-26 20:26:00 +08:00
93781b2a56
(I guess)
15 lines
422 B
C#
15 lines
422 B
C#
using System.Collections.Generic;
|
|
using BililiveRecorder.Flv.Pipeline.Actions;
|
|
|
|
namespace BililiveRecorder.Flv.Grouping.Rules
|
|
{
|
|
public class EndGroupingRule : IGroupingRule
|
|
{
|
|
public bool CanStartWith(Tag tag) => tag.IsEnd();
|
|
|
|
public bool CanAppendWith(Tag tag, List<Tag> tags) => false;
|
|
|
|
public PipelineAction CreatePipelineAction(List<Tag> tags) => new PipelineEndAction(tags[0]);
|
|
}
|
|
}
|