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

Hang in GstPipelineHandler::Stop() #48

Open
XPav opened this issue Apr 28, 2023 · 0 comments
Open

Hang in GstPipelineHandler::Stop() #48

XPav opened this issue Apr 28, 2023 · 0 comments

Comments

@XPav
Copy link

XPav commented Apr 28, 2023

Using rtspclientsink in a custom pipeline resulted in a hang in GstPipelineHandler::Stop(). The function would get called twice for the pipeline, and hang the second time through the call awaiting the READY to PAUSE state change.

Stack trace showed it down in gstrtspclientsink.c, waiting for a connection to be started again.

To fix, I added a single line after the mutex lock checking to see if the pipeline was already paused and not playing, and if so, don't do anymore state changes.

if (m_data->paused == true && m_data->playing == false) return;
andbro-ep added a commit to andbro-ep/mrayGStreamerUnity that referenced this issue Jun 9, 2023
This is a fix for the same problem as XPav had and it is the solution provided in the comment:
mrayy#48

Also fixed that the VS solution could be built, by removing flag and files from the build.
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