generated from obsproject/obs-plugintemplate
-
Notifications
You must be signed in to change notification settings - Fork 7
Add MoQ Source for receiving broadcasts #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
davegullo
wants to merge
14
commits into
moq-dev:master
Choose a base branch
from
davegullo:hang_source
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0357d8b
Add hang_source: MoQ video source plugin
davegullo 33abd1a
Improve thread safety and remove per-frame debug logging
davegullo 792a48d
Fix API renames and race conditions in hang-source
davegullo f6c4d19
Merge master into hang_source
davegullo 36b7d57
debounced and smoothed out the video preview when changing hang_sourcβ¦
davegullo b644d05
Fix segfault on shutdown by adding shutting_down flag
davegullo 7c8bbb0
removed redundant hang-source.c file
davegullo 6a4911e
hang-source: Fix thread safety and dynamic resolution handling
davegullo 9756763
hang-source: Remove hardcoded codec and format assumptions
davegullo b5fccc7
updated defaults to localhost
davegullo 84fa116
Simplify hang_source: remove debounce mechanism and reduce mutex contβ¦
davegullo f9d916f
Merge branch 'moq-dev:master' into hang_source
davegullo fdd5257
Rebranding:
davegullo f4f128a
removed redundant check, match all "avc" and "h264" to AV_CODEC_ID_H264
davegullo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| #include <iostream> | ||
|
|
||
| // Logging macros | ||
| #define LOG(level, format, ...) blog(level, "[obs-moq] " format, ##__VA_ARGS__) | ||
| #define LOG_DEBUG(format, ...) LOG(LOG_DEBUG, format, ##__VA_ARGS__) | ||
| #define LOG_INFO(format, ...) LOG(LOG_INFO, format, ##__VA_ARGS__) | ||
| #define LOG_WARNING(format, ...) LOG(LOG_WARNING, format, ##__VA_ARGS__) | ||
| #define LOG_ERROR(format, ...) LOG(LOG_ERROR, format, ##__VA_ARGS__) | ||
| // Logging macros - use MOQ_ prefix to avoid conflicts with OBS log level constants | ||
| #define MOQ_LOG(level, format, ...) blog(level, "[obs-moq] " format, ##__VA_ARGS__) | ||
| #define LOG_DEBUG(format, ...) MOQ_LOG(400, format, ##__VA_ARGS__) | ||
| #define LOG_INFO(format, ...) MOQ_LOG(300, format, ##__VA_ARGS__) | ||
| #define LOG_WARNING(format, ...) MOQ_LOG(200, format, ##__VA_ARGS__) | ||
| #define LOG_ERROR(format, ...) MOQ_LOG(100, format, ##__VA_ARGS__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Script executed:
Repository: moq-dev/obs
Length of output: 37
π Script executed:
rg -B 2 -A 8 "moq_session_connect\s*\(" --type=c --type=h --type=cppRepository: moq-dev/obs
Length of output: 1240
π Script executed:
Repository: moq-dev/obs
Length of output: 39
π Script executed:
rg "moq_session_connect" --type=h --type=hpp -B 5 -A 5Repository: moq-dev/obs
Length of output: 82
π Script executed:
Repository: moq-dev/obs
Length of output: 120
π Script executed:
rg "moq_session_connect" -B 5 -A 10Repository: moq-dev/obs
Length of output: 1723
π Script executed:
rg "include.*moq" src/moq-output.cpp src/hang-source.cppRepository: moq-dev/obs
Length of output: 170
π Script executed:
Repository: moq-dev/obs
Length of output: 144
π Script executed:
Repository: moq-dev/obs
Length of output: 37
π Script executed:
rg "int32_t.*moq_session_connect|moq_session_connect.*int32_t" -A 8 -B 2Repository: moq-dev/obs
Length of output: 554
π Script executed:
rg "moq_session_connect" -B 10 -A 10 src/hang-source.cppRepository: moq-dev/obs
Length of output: 652
π Script executed:
git log --oneline -20 | grep -i moqRepository: moq-dev/obs
Length of output: 109
Use
nullptrinstead of0for the null pointer.The fourth parameter to
moq_session_connectis a pointer type (origin_consume). While0works as a null pointer in C++, modern C++ style prefersnullptrfor better type safety and clarity. Change0tonullptr.π€ Prompt for AI Agents