diff --git a/cmds/stagefright/Android.mk b/cmds/stagefright/Android.mk index 51a064905e53a..4550d1a780c0e 100644 --- a/cmds/stagefright/Android.mk +++ b/cmds/stagefright/Android.mk @@ -3,7 +3,6 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ - JPEGSource.cpp \ stagefright.cpp LOCAL_SHARED_LIBRARIES := \ diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index d1926b4ce9916..73215d3244e62 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -35,8 +36,6 @@ #include #include -#include "JPEGSource.h" - using namespace android; static long gNumRepetitions; diff --git a/cmds/stagefright/JPEGSource.h b/include/media/stagefright/JPEGSource.h similarity index 97% rename from cmds/stagefright/JPEGSource.h rename to include/media/stagefright/JPEGSource.h index 051c0346f51a7..9d0a7008963ed 100644 --- a/cmds/stagefright/JPEGSource.h +++ b/include/media/stagefright/JPEGSource.h @@ -26,7 +26,6 @@ class DataSource; class MediaBufferGroup; struct JPEGSource : public MediaSource { - // Assumes ownership of "source". JPEGSource(const sp &source); virtual status_t start(MetaData *params = NULL); diff --git a/media/libstagefright/Android.mk b/media/libstagefright/Android.mk index a4f2c79813c1f..22769ba49705e 100644 --- a/media/libstagefright/Android.mk +++ b/media/libstagefright/Android.mk @@ -8,6 +8,7 @@ LOCAL_SRC_FILES:= \ FileSource.cpp \ HTTPDataSource.cpp \ HTTPStream.cpp \ + JPEGSource.cpp \ MP3Extractor.cpp \ MPEG4Extractor.cpp \ MPEG4Writer.cpp \ diff --git a/cmds/stagefright/JPEGSource.cpp b/media/libstagefright/JPEGSource.cpp similarity index 99% rename from cmds/stagefright/JPEGSource.cpp rename to media/libstagefright/JPEGSource.cpp index 25c772f416c60..d1dfd83836b05 100644 --- a/cmds/stagefright/JPEGSource.cpp +++ b/media/libstagefright/JPEGSource.cpp @@ -18,9 +18,8 @@ #define LOG_TAG "JPEGSource" #include -#include "JPEGSource.h" - #include +#include #include #include #include