summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/rtsp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-11-18 20:59:13 -0800
committerJames Dong <jdong@google.com>2010-11-19 10:48:22 -0800
commit674ebd0b4e1143e38392a4e3bb38b4679a4577bc (patch)
tree413ce9a380d7c35b935e475ea21fecf5cc5466e7 /media/libstagefright/rtsp
parent317ca79a49746dbd1b6bb83712e93e2dc5f6e4f0 (diff)
downloadframeworks_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.cpp2
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);