diff options
author | imcheng@chromium.org <imcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-19 20:43:44 +0000 |
---|---|---|
committer | imcheng@chromium.org <imcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-19 20:43:44 +0000 |
commit | 3064e4ca875687c7051c7f7575aecbedeeba8dfd (patch) | |
tree | 49099d6a4da32ba4e819f92ea80863044a8b4427 /skia | |
parent | 0bed9f3847af78c4a074b80211baabc9370858bf (diff) | |
download | chromium_src-3064e4ca875687c7051c7f7575aecbedeeba8dfd.zip chromium_src-3064e4ca875687c7051c7f7575aecbedeeba8dfd.tar.gz chromium_src-3064e4ca875687c7051c7f7575aecbedeeba8dfd.tar.bz2 |
Cast: Fix crash in cast streaming api if starting stream before UDP.
If the user of cast streaming api tries to call rtpStream.start before
udpTransport.setDestination, CastSessionDelegate now detects this and
calls rtpStream.onError instead of crashing due to null pointer.
The CastRtpStream object will be reset as well.
Since the code to call CastSessionDelegate is asynchronous,
rtpStream.onStarted will still be called in this case.
rtpStream.onError will be called later when the
CastSessionDelegate code actually runs.
Consolidated comments by moving them from
cast_session_delegate.h to cast_session.h.
BUG=351506
Review URL: https://codereview.chromium.org/195993004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258081 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
0 files changed, 0 insertions, 0 deletions