Merge "Default W, H allowed in SurfaceMediaSource dequeue"
This commit is contained in:
committed by
Android (Google) Code Review
commit
3451df1a5c
@@ -179,9 +179,11 @@ status_t SurfaceMediaSource::dequeueBuffer(int *outBuf, uint32_t w, uint32_t h,
|
|||||||
// TODO: Currently just uses mDefaultWidth/Height. In the future
|
// TODO: Currently just uses mDefaultWidth/Height. In the future
|
||||||
// we might declare mHeight and mWidth and check against those here.
|
// we might declare mHeight and mWidth and check against those here.
|
||||||
if ((w != 0) || (h != 0)) {
|
if ((w != 0) || (h != 0)) {
|
||||||
LOGE("dequeuebuffer: invalid buffer size! Req: %dx%d, Found: %dx%d",
|
if ((w != mDefaultWidth) || (h != mDefaultHeight)) {
|
||||||
mDefaultWidth, mDefaultHeight, w, h);
|
LOGE("dequeuebuffer: invalid buffer size! Req: %dx%d, Found: %dx%d",
|
||||||
return BAD_VALUE;
|
mDefaultWidth, mDefaultHeight, w, h);
|
||||||
|
return BAD_VALUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t returnFlags(OK);
|
status_t returnFlags(OK);
|
||||||
|
|||||||
Reference in New Issue
Block a user