• R/O
  • HTTP
  • SSH
  • HTTPS

main: Commit

メインリポジトリ


Commit MetaInfo

Revisiondc9c47794026f80c7a2873969138349284b2599d (tree)
Time2009-06-15 16:32:27
AuthorNoumi Akira <noumiakira@user...>
CommiterNoumi Akira

Log Message

add register filtergraph to ROT. (DEBUG)

Change Summary

Incremental Difference

--- a/Tests/QPlayer/MainDialog.h
+++ b/Tests/QPlayer/MainDialog.h
@@ -25,6 +25,8 @@ class MainDialog :
2525
2626 ATL::CComPtr<IBaseFilter> m_Decoder;
2727
28+ DWORD m_dwCookie;
29+
2830 public:
2931
3032 /* */
@@ -33,7 +35,7 @@ public:
3335
3436 /* */
3537
36- MainDialog()
38+ MainDialog() : m_dwCookie(0)
3739 {
3840 }
3941
@@ -200,6 +202,11 @@ private:
200202
201203 void ReleaseFilterGraph()
202204 {
205+ if (m_dwCookie != 0) {
206+ RemoveFromRot(m_dwCookie);
207+ m_dwCookie = 0;
208+ }
209+
203210 if (m_FilterGraph != 0) {
204211 ATL::CComQIPtr<IMediaControl> ctrl(m_FilterGraph);
205212 ctrl->Stop();
@@ -510,6 +517,12 @@ private:
510517
511518 /* */
512519
520+#ifdef _DEBUG
521+ AddToRot(m_FilterGraph, &m_dwCookie);
522+#endif
523+
524+ /* */
525+
513526 GetDlgItem(IDC_RUN) .ShowWindow(SW_NORMAL);
514527 GetDlgItem(IDC_PAUSE).ShowWindow(SW_NORMAL);
515528 GetDlgItem(IDC_RUN) .EnableWindow(TRUE);
@@ -626,8 +639,6 @@ private:
626639
627640 /* */
628641
629-#if 0
630-
631642 static HRESULT AddToRot(IUnknown* pUnkGraph, DWORD* pdwRegister)
632643 {
633644 ATL::CComPtr<IRunningObjectTable> rot;
@@ -668,8 +679,6 @@ private:
668679 rot->Revoke(dwRegister);
669680 }
670681
671-#endif
672-
673682 /* */
674683
675684 }; // MainDialog
Show on old repository browser