Bug 1093521 - [RTSP] An extra PLAY request is send after end-of-stream. r=ettseng
authorJonathan Hao <jhao@mozilla.com>
Tue, 04 Nov 2014 17:39:29 +0800
changeset 214104 1505c9f42b2ff73efd1a54ff74f3c33a73bac66c
parent 214103 105570fa25f3ba60efcea92615fe93d1cde608bc
child 214105 aad11b8e24c36e2c6362449301b1bb02d471fd0f
push id27771
push userryanvm@gmail.com
push dateWed, 05 Nov 2014 19:04:24 +0000
treeherdermozilla-central@305b4fecce99 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersettseng
bugs1093521
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1093521 - [RTSP] An extra PLAY request is send after end-of-stream. r=ettseng
netwerk/protocol/rtsp/controller/RtspControllerChild.cpp
--- a/netwerk/protocol/rtsp/controller/RtspControllerChild.cpp
+++ b/netwerk/protocol/rtsp/controller/RtspControllerChild.cpp
@@ -457,16 +457,18 @@ RtspControllerChild::GetTotalTracks(uint
   return NS_OK;
 }
 
 NS_IMETHODIMP
 RtspControllerChild::PlaybackEnded()
 {
   LOG(("RtspControllerChild::PlaybackEnded"));
 
+  StopPlayAndPauseTimer();
+
   if (NS_IsMainThread()) {
     if (!OKToSendIPC() || !SendPlaybackEnded()) {
       return NS_ERROR_FAILURE;
     }
   } else {
     nsresult rv = NS_DispatchToMainThread(
                     new SendIPCEvent(this, SendPlaybackEndedEvent));
     NS_ENSURE_SUCCESS(rv, rv);