Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 466940d1 authored by Santhosh Behara's avatar Santhosh Behara Committed by Linux Build Service Account
Browse files

RTSP: Fix crash issue while repeated pause/resume

While doing repeated pause-resume operation in RTSP streaming,
some times, the accessunit timeout check is being posted when
the streaming paused, and even after receving the EOS.
Due to this check, after the EOS, the number of packets received
will be zero and the session gets Teardown while the
streaming is paused. Upon resume, it leads to check failure and crash.

Changes are done such that the accessunit timeout check will
not be done in pause/seek state.

CRs-Fixed: 636312

Change-Id: I60d09d5394eed59a8e2bbf5556628f1ea26f7807
parent 1b470c52
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -966,7 +966,13 @@ struct MyHandler : public AHandler {
                }
                }


                mNumAccessUnitsReceived = 0;
                mNumAccessUnitsReceived = 0;

                //During Pause there will not be any access units coming from N/W and hence
                //no need to post the check again
                if (!mCheckPending) {
                    ALOGI("Posting check again mcheckpening:%d",mCheckPending);
                    msg->post(kAccessUnitTimeoutUs);
                    msg->post(kAccessUnitTimeoutUs);
                }
                break;
                break;
            }
            }