summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/libmedia/IMediaPlayerService.cpp1
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/IMediaPlayerService.cpp b/media/libmedia/IMediaPlayerService.cpp
index a7568b9..4d33d40 100644
--- a/media/libmedia/IMediaPlayerService.cpp
+++ b/media/libmedia/IMediaPlayerService.cpp
@@ -261,6 +261,7 @@ status_t BnMediaPlayerService::onTransact(
size_t size;
status_t status = decode(fd, offset, length, &sampleRate, &numChannels, &format,
heap, &size);
+ ::close(fd);
reply->writeInt32(status);
if (status == NO_ERROR) {
reply->writeInt32(sampleRate);
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index 6efdfe4..cf6771e 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -1397,7 +1397,6 @@ status_t MediaPlayerService::decode(int fd, int64_t offset, int64_t length,
Exit:
if (player != 0) player->reset();
- ::close(fd);
return status;
}