diff options
author | James Dong <jdong@google.com> | 2010-11-18 20:59:13 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-11-19 10:48:22 -0800 |
commit | 674ebd0b4e1143e38392a4e3bb38b4679a4577bc (patch) | |
tree | 413ce9a380d7c35b935e475ea21fecf5cc5466e7 /media/libstagefright/rtsp | |
parent | 317ca79a49746dbd1b6bb83712e93e2dc5f6e4f0 (diff) | |
download | frameworks_av-674ebd0b4e1143e38392a4e3bb38b4679a4577bc.zip frameworks_av-674ebd0b4e1143e38392a4e3bb38b4679a4577bc.tar.gz frameworks_av-674ebd0b4e1143e38392a4e3bb38b4679a4577bc.tar.bz2 |
Removed uncessary FILE structure pointer for I/O
o also move the fd owner from caller to callee in the Writers
Change-Id: I510ccfdd0fcc58f1777fea4ed1349fd251852c65
Diffstat (limited to 'media/libstagefright/rtsp')
-rw-r--r-- | media/libstagefright/rtsp/ARTPWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/rtsp/ARTPWriter.cpp b/media/libstagefright/rtsp/ARTPWriter.cpp index 155fd96..5a033e1 100644 --- a/media/libstagefright/rtsp/ARTPWriter.cpp +++ b/media/libstagefright/rtsp/ARTPWriter.cpp @@ -46,7 +46,7 @@ static int UniformRand(int limit) { ARTPWriter::ARTPWriter(int fd) : mFlags(0), - mFd(fd), + mFd(dup(fd)), mLooper(new ALooper), mReflector(new AHandlerReflector<ARTPWriter>(this)) { CHECK_GE(fd, 0); |