Fixed the LibSharedMedia callback.

Fixes GH-99.