moq-video: Media Foundation survives threads cpal left in a COM STA

オープン
#10,285 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
53/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust

調査の方向性

Start with rs/moq-video/src/mf.rs and rs/moq-video/src/capture/mod.rs; trace the ComGuard calls and the blocking Media Foundation listings. Then inspect the audio-device initialization path and add the described regression test using a current_thread runtime. Done means listing audio devices before cameras succeeds on the first launch.

索引モデルが issue の本文から書いたものです。

説明

ComGuard::new (rs/moq-video/src/mf.rs) calls CoInitializeEx(COINIT_MULTITHREADED) on tokio blocking-pool threads. It fails with RPC_E_CHANGED_MODE once cpal 0.18's WASAPI host has initialized that thread as an STA, which cpal keeps until the thread exits. In an app that lists audio devices first, the camera then shows as unavailable on first launch.

Recommended: run moq-video's Media Foundation work (the blocking listings in capture/mod.rs, and anything else built on ComGuard) on threads moq-video owns. Add a test that lists audio devices and then cameras on a current_thread runtime. Alternatives considered: accepting the STA (risky for capture with no message pump), or fixing only moq-audio (any other STA user still breaks it).

Found by https://github.com/moq-dev/studio/pull/295.

(Written by Claude Opus 5.5 with high)

主要言語
Rust
スター
1.6k
フォーク
251
平均マージ
10時間 10分
マージ済み PR(30日)
832

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

moq-dev/moq のほかの issue

moq-dev/moq の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。