From 674ebd0b4e1143e38392a4e3bb38b4679a4577bc Mon Sep 17 00:00:00 2001 From: James Dong Date: Thu, 18 Nov 2010 20:59:13 -0800 Subject: Removed uncessary FILE structure pointer for I/O o also move the fd owner from caller to callee in the Writers Change-Id: I510ccfdd0fcc58f1777fea4ed1349fd251852c65 --- media/libstagefright/rtsp/ARTPWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/libstagefright/rtsp') 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(this)) { CHECK_GE(fd, 0); -- cgit v1.1