diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..3b81bc1 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,27 @@ +name: Lint + +on: + push: + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run TypeScript + run: npm run check + + - name: Run ESLint + run: npm run lint diff --git a/src/media-sink.ts b/src/media-sink.ts index 14f7a24..77dd143 100644 --- a/src/media-sink.ts +++ b/src/media-sink.ts @@ -581,7 +581,7 @@ export abstract class BaseMediaSampleSink< ) ) { await decodePackets(); - await flushDecoder(); + await flushDecoder(); // Always flush here, improves decoder compatibility } timestampsOfInterest.push(targetPacket.timestamp);