OSDN Git Service

Fix crash in MyHandler when sockets are not set.
authorHenrik Backlund <henrik.backlund@sonyericsson.com>
Tue, 20 Sep 2011 07:54:28 +0000 (09:54 +0200)
committerHenrik Baard <henrik.baard@sonymobile.com>
Wed, 5 Dec 2012 08:30:39 +0000 (09:30 +0100)
commitb6f7642496f955da04d1eb9e33df0dab653c9c4e
tree640602cf8534f160138d1d80dda4188fef68c787
parentf00d40c716fd4741fa56dd2b59813227658e50f2
Fix crash in MyHandler when sockets are not set.

-When going quickly in and out of the video view during an rtsp
streaming session, a race condition occurs and MyHandler tries to
connect to a socket that has been reset. To avoid this,
checks are added.
- If there are errors during setupTrack 1, it is no use
setting up track 2. It will cause new errors.
- No assert for socket connect since there is a normal
status check already.

Change-Id: Ie06221d6c0d78ce0449f76c782ed5120fa646bfd
media/libstagefright/rtsp/ARTSPConnection.cpp
media/libstagefright/rtsp/MyHandler.h