Permalink
Browse files

MediaElement: fix crash in logging statement

  • Loading branch information...
1 parent acd7636 commit b698c2f85bf4d6a03217f6b0ebf617b748b98d5f @rolfbjarne rolfbjarne committed May 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mediaelement.cpp
View
@@ -1298,7 +1298,7 @@ MediaElement::CurrentStateChangedHandler (Playlist *playlist, EventArgs *args)
void
MediaElement::MediaErrorHandler (Playlist *playlist, ErrorEventArgs *args)
{
- LOG_MEDIAELEMENT ("MediaElement::MediaErrorHandler (). State: %s Message: %s Initializing: %i Uri: %s\n", GetStateName (state), args ? args->GetErrorMessage() : NULL, flags & Initializing, GetSource ()->ToString ());
+ LOG_MEDIAELEMENT ("MediaElement::MediaErrorHandler (). State: %s Message: %s Initializing: %i Uri: %s\n", GetStateName (state), args ? args->GetErrorMessage() : NULL, flags & Initializing, GetSource () ? GetSource ()->ToString () : NULL);
VERIFY_MAIN_THREAD;
if (state == MediaElementStateClosed && !(flags & Initializing) && !(flags & ErrorPending))

0 comments on commit b698c2f

Please sign in to comment.