Skip to content

Commit 1d71c7b

Browse files
psanketiAndroid (Google) Code Review
authored andcommitted
Merge "Returning EOS in SurfaceMediaSource:read" into ics-factoryrom
2 parents 5d87227 + a1849fc commit 1d71c7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

media/libstagefright/SurfaceMediaSource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,8 @@ status_t SurfaceMediaSource::read( MediaBuffer **buffer,
764764
// If the loop was exited as a result of stopping the recording,
765765
// it is OK
766766
if (mStopped) {
767-
LOGV("Read: SurfaceMediaSource is stopped. Returning NO_INIT;");
768-
return NO_INIT;
767+
LOGV("Read: SurfaceMediaSource is stopped. Returning ERROR_END_OF_STREAM.");
768+
return ERROR_END_OF_STREAM;
769769
}
770770

771771
// Update the current buffer info

0 commit comments

Comments
 (0)