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

Remote sample source uses wrong channel # for remote sink #2351

Open
ijessen-mitll opened this issue Dec 4, 2024 · 2 comments
Open

Remote sample source uses wrong channel # for remote sink #2351

ijessen-mitll opened this issue Dec 4, 2024 · 2 comments

Comments

@ijessen-mitll
Copy link

ijessen-mitll commented Dec 4, 2024

When changing settings within the remote sample source, the channel index used in the emitted API call to the remote sink is wrong (255 instead of 0).

The channel value should be set to 0 here, which is called during implicit default construction of RemoteInputUDPHandler::m_remoteInputBuffer, which ultimately provides the RemoteMetaDataFEC instance that holds the channel index value.

Capturing traffic during an attempt to change a setting (e.g. remote device Fc) from the remote sample source GUI, this is the resulting HTTP exchange:

Screenshot from 2024-12-04 17-30-29

@ijessen-mitll
Copy link
Author

ijessen-mitll commented Dec 6, 2024

Seems to be a server (i.e. remote sink channel) issue - remote sink channel plugin is sending the incorrect channel # in the metadata element of the stream:

Screenshot from 2024-12-06 15-21-41

@ijessen-mitll
Copy link
Author

ijessen-mitll commented Dec 6, 2024

Alright well - this is totally weird. I'm watching in the debugger as remotesinksink.cpp:135 is executed. The value of m_deviceIndex is 0. Executing the expression m_deviceIndex % 256 in the debugger results in 0. The line immediately preceding correctly sets metaData.m_deviceIndex to 0.

And yet - metaData.m_channelIndex is set to 255. Every time. Something is going on beyond my understanding.

gcc --version
gcc (Debian 12.2.0-14) 12.2.0

gcc -dumpmachine
aarch64-linux-gnu

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

No branches or pull requests

1 participant