diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-05-15 22:54:44 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-05-15 22:54:44 +0400 |
commit | 9704199a943cb7f7b4dc19f755dc60d8da55baa6 (patch) | |
tree | b9f8fafbc8bf393ad8e15a3db72e42c6ff8442ef /src/apps/mplayerc/SaveDlg.cpp | |
parent | a283669d90fd4766dffe734be5a5998b7e57c52d (diff) |
legacy branch: merge r3071-r3107 from trunk
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/branches/legacy@3108 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/SaveDlg.cpp')
-rw-r--r-- | src/apps/mplayerc/SaveDlg.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/apps/mplayerc/SaveDlg.cpp b/src/apps/mplayerc/SaveDlg.cpp index 7e0c909a4..5d59e0d36 100644 --- a/src/apps/mplayerc/SaveDlg.cpp +++ b/src/apps/mplayerc/SaveDlg.cpp @@ -171,10 +171,19 @@ BOOL CSaveDlg::OnInitDialog() hr = pGB->Connect(
GetFirstPin((pSrc), PINDIR_OUTPUT),
GetFirstPin((pMid), PINDIR_INPUT));
+
+ if (FAILED(hr)) {
+ m_report.SetWindowText(_T("Error Connect pSrc / pMid"));
+ return FALSE;
+ }
hr = pGB->Connect(
GetFirstPin((pMid), PINDIR_OUTPUT),
GetFirstPin((pDst), PINDIR_INPUT));
+ if (FAILED(hr)) {
+ m_report.SetWindowText(_T("Error Connect pMid / pDst"));
+ return FALSE;
+ }
pMS = pMid;
|