diff options
author | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-02 23:23:36 +0400 |
---|---|---|
committer | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-02 23:23:36 +0400 |
commit | 4f11573c2b07632d078e98dc50620a1935ad5d17 (patch) | |
tree | 42c3ad3ed70f8a3526b4cf8d0e631225e26ca894 | |
parent | 0d32d6282bf68fd38a4b377b72fb1b20c80bba46 (diff) |
Crash with RealMedia fixed (ticket #163)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1834 10f7b99b-c216-0410-bff0-8a66a9350fd8
-rw-r--r-- | src/apps/mplayerc/MainFrm.cpp | 3 | ||||
-rw-r--r-- | src/apps/mplayerc/RealMediaGraph.cpp | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/apps/mplayerc/MainFrm.cpp b/src/apps/mplayerc/MainFrm.cpp index d29cfe712..a3426d299 100644 --- a/src/apps/mplayerc/MainFrm.cpp +++ b/src/apps/mplayerc/MainFrm.cpp @@ -552,6 +552,9 @@ const TCHAR *GetEventString(LONG evCode) UNPACK_VALUE(EC_CONTENTPROPERTY_CHANGED);
UNPACK_VALUE(EC_BANDWIDTHCHANGE);
UNPACK_VALUE(EC_VIDEOFRAMEREADY);
+
+ UNPACK_VALUE(EC_BG_AUDIO_CHANGED);
+ UNPACK_VALUE(EC_BG_ERROR);
};
#undef UNPACK_VALUE
return _T("UNKNOWN");
diff --git a/src/apps/mplayerc/RealMediaGraph.cpp b/src/apps/mplayerc/RealMediaGraph.cpp index e8c71e237..ce4e1f7a4 100644 --- a/src/apps/mplayerc/RealMediaGraph.cpp +++ b/src/apps/mplayerc/RealMediaGraph.cpp @@ -196,7 +196,7 @@ void CRealMediaPlayer::Deinit() if(m_pEngine)
{
m_fpCloseEngine(m_pEngine);
- m_pEngine = NULL;
+ m_pEngine.Detach();
}
if(m_hRealMediaCore)
@@ -240,7 +240,10 @@ STDMETHODIMP CRealMediaPlayer::ErrorOccurred(const UINT8 unSeverity, const UINT3 }
if(!errmsg && (errmsg = (char*)CoTaskMemAlloc(strlen("RealMedia error")+1)))
+ {
strcpy(errmsg, "RealMedia error");
+ TRACE("RealMedia error\n");
+ }
m_pRMG->NotifyEvent(EC_BG_ERROR, (LONG_PTR)errmsg, 0);
}
|