Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Merge "Add more logging for video capture" into jb-mr1-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Taylor authored and Android (Google) Code Review committed Oct 24, 2012
2 parents 874ef88 + 14a5c29 commit d6566e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/com/android/mms/model/MediaModel.java
Expand Up @@ -33,6 +33,7 @@
import android.util.Log;

import com.android.mms.LogTag;
import com.android.mms.MmsConfig;
import com.google.android.mms.MmsException;
// TODO: remove dependency for SDK build

Expand Down Expand Up @@ -239,6 +240,11 @@ private void initMediaSize() throws MmsException {
// sometimes mSize will be zero here. It's tempting to count the bytes as the code
// does below, but that turns out to be very slow. We'll deal with a zero size
// when we resize the media.

if (isVideo() && mSize > MmsConfig.getMaxMessageSize()) {
Log.w(TAG, "initMediaSize: Video size: f.getChannel().size(): " + mSize +
" larger than max message size: " + MmsConfig.getMaxMessageSize());
}
} else {
while (-1 != input.read()) {
mSize++;
Expand Down

0 comments on commit d6566e1

Please sign in to comment.