Skip to content
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

PLI dilution for 0.x. Fixes-according-to-PR-3422-remark #3476

Open
wants to merge 3 commits into
base: 0.x
Choose a base branch
from

Conversation

natikaltura
Copy link

@natikaltura natikaltura commented Nov 7, 2024

Hi @lminiero,

I had some git issues, so I created this new PR (and branch) for the 0.x patch.

Thanks

@natikaltura natikaltura mentioned this pull request Nov 7, 2024
rtp.c Outdated
@@ -1173,8 +1174,8 @@ gboolean janus_rtp_simulcasting_context_process_rtp(janus_rtp_simulcasting_conte
if(context->substream_target_temp < 0)
context->substream_target_temp = 0;
if(context->substream_target_temp != prev_target) {
JANUS_LOG(LOG_WARN, "No packet received on substream %d for a while, falling back to %d\n",
context->substream, context->substream_target_temp);
JANUS_LOG(LOG_WARN, "No packet received on substream %d for %d Milliseconds, falling back to %d\n",
Copy link
Contributor

@tmatth tmatth Nov 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want PRId64 instead of %d here, although Janus currently isn't using this anywhere.

I would've suggested G_GINT64_MODIFIER but:

This is not necessarily the correct modifier for printing and scanning int64_t values, even though the in-memory representation is the same. Standard C macros like PRId64 and SCNd64 should be used for int64_t.

See:
https://docs.gtk.org/glib/types.html

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our code style is to use %"SCNi64" in those instances (assuming this is a int64_t?).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok, that makes since given that internally janus_vprintf is calling g_vasprintf.

@natikaltura
Copy link
Author

"Hi, I've fixed it. Please also review the multistream PLI fix; it includes additional changes: #3423."

@lminiero
Copy link
Member

See #3423 (comment)

@natikaltura
Copy link
Author

Hi @lminiero, thanks for your comments! All fixed and pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants