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

Commit

Permalink
am d6566e1: Merge "Add more logging for video capture" into jb-mr1-dev
Browse files Browse the repository at this point in the history
* commit 'd6566e19836c5671f333d048ba70bec4cda493bb':
  Add more logging for video capture
  • Loading branch information
Tom Taylor authored and Android Git Automerger committed Oct 24, 2012
2 parents 8962ea3 + d6566e1 commit 56bc123
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 56bc123

Please sign in to comment.