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

Stream will stop if you stop and start the stream very fast. #47

Open
kingvenlee opened this issue Oct 15, 2018 · 0 comments
Open

Stream will stop if you stop and start the stream very fast. #47

kingvenlee opened this issue Oct 15, 2018 · 0 comments

Comments

@kingvenlee
Copy link

Hi,

i use VLC to test. if you recycle do 'stop and start' the same stream three time very fast, the last action is start, then the stream will stop after 10 seconds.

test steps:

  1. start a stream, play several seconds.
  2. stop the stream then start it as fast as you can.
  3. repeat step#2
  4. repeat step#2
  5. stream play ok, but after 10 seconds it will stop.

i think the problem is that function 'ageActiveRoutes()' run a timer(10 sec) delay.
it call 'internAgeRoute()' and do
croute->ageValue--;
...
BIT_ZERO(croute->ageVifBits);
...

is you change
#define INTERVAL_QUERY_RESPONSE 10
to
#define INTERVAL_QUERY_RESPONSE 1

this issue will not happen

so, even my last action is start a stream , the croute->ageValue will '--' to 0 if the function 'ageActiveRoutes()' run two times after my 'start stream' action.

so i do a modify to below in function 'internAgeRoute()' :
// The aging vif bits must be reset for each round...
+if (croute->upstrState == ROUTESTATE_CHECK_LAST_MEMBER ) {
BIT_ZERO(croute->ageVifBits);
+}
return result;
}

if you have any question please contact me lileirqtq@hotmail.com

thanks

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