summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/FileSource.cpp2
-rw-r--r--media/libstagefright/StagefrightMetadataRetriever.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/FileSource.cpp b/media/libstagefright/FileSource.cpp
index 07ec265..a7ca3da 100644
--- a/media/libstagefright/FileSource.cpp
+++ b/media/libstagefright/FileSource.cpp
@@ -38,6 +38,8 @@ FileSource::FileSource(const char *filename)
if (mFd >= 0) {
mLength = lseek64(mFd, 0, SEEK_END);
+ } else {
+ ALOGE("Failed to open file '%s'. (%s)", filename, strerror(errno));
}
}
diff --git a/media/libstagefright/StagefrightMetadataRetriever.cpp b/media/libstagefright/StagefrightMetadataRetriever.cpp
index 35f9c1f..fee557d 100644
--- a/media/libstagefright/StagefrightMetadataRetriever.cpp
+++ b/media/libstagefright/StagefrightMetadataRetriever.cpp
@@ -61,12 +61,15 @@ status_t StagefrightMetadataRetriever::setDataSource(
mSource = DataSource::CreateFromURI(uri, headers);
if (mSource == NULL) {
+ ALOGE("Unable to create data source for '%s'.", uri);
return UNKNOWN_ERROR;
}
mExtractor = MediaExtractor::Create(mSource);
if (mExtractor == NULL) {
+ ALOGE("Unable to instantiate an extractor for '%s'.", uri);
+
mSource.clear();
return UNKNOWN_ERROR;