Fairly sure this is unintentional, and will cause fatal errors if triggered on a system without devel.module:

if (!isset($preview['#file'])) { dpm($file); }

Files: 
CommentFileSizeAuthor
#1 1512258_media_dpm.patch475 bytesAlan Evans
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new475 bytes
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es).
[ View ]

Status:Needs review» Fixed

Argh, sorry about that. Committed patch in #1 to 7.x-1.x: http://drupalcode.org/project/media.git/commit/7e66078

Thanks!

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.