moq-ffi: media consumer subscribe waits for a sibling broadcast before checking the decoder

Open Beginner friendly
#10,336 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Read rs/moq-ffi/src/video.rs and find MoqVideoConsumer::subscribe, where resolve_inner runs before moq_video::decode::Consumer::new; inspect the audio counterpart as well. The issue says decoder opening needs only the catalog config, so start by tracing how that config reaches decoder creation. Done means unsupported codecs return UnsupportedConfig before waiting for an unannounced sibling broadcast.

Written by the indexing model from the issue text.

Description

quest

Problem

MoqVideoConsumer::subscribe (and the audio counterpart) resolves the rendition's broadcast before opening the decoder (rs/moq-ffi/src/video.rs, subscribe: resolve_inner runs before moq_video::decode::Consumer::new opens the backend). A rendition whose broadcast points at a sibling that is not announced yet therefore waits for that sibling, even when this machine has no decoder for its codec, for example VP9 in a build without vpx, or AV1 with no NVDEC.

A player that walks ranked renditions, like the OBS MoQ Source (https://github.com/moq-dev/moq/pull/10319), cannot move on to a playable rendition in the catalog's own broadcast until the sibling appears, which may be never.

Notes

  • Opening (or at least probing) the decoder before resolving would turn this into an immediate UnsupportedConfig. The decoder open needs only the catalog config, not the track.
  • video_config already rejects unknown codec names before resolving for the same reason (its comment); this extends that to codecs the build or device cannot decode.

(Written by Claude Opus 5.5)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
10h 10m
Merged PRs (30d)
822

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.