Applied patch [ 1194316 ] wxMediaCtrl MSW config and setup cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
20
configure.in
20
configure.in
@@ -437,7 +437,6 @@ if test $DEBUG_CONFIGURE = 1; then
|
|||||||
DEFAULT_wxUSE_TEXTFILE=no
|
DEFAULT_wxUSE_TEXTFILE=no
|
||||||
DEFAULT_wxUSE_SOUND=no
|
DEFAULT_wxUSE_SOUND=no
|
||||||
DEFAULT_wxUSE_MEDIACTRL=no
|
DEFAULT_wxUSE_MEDIACTRL=no
|
||||||
DEFAULT_wxUSE_DIRECTSHOW=no
|
|
||||||
DEFAULT_wxUSE_INTL=no
|
DEFAULT_wxUSE_INTL=no
|
||||||
DEFAULT_wxUSE_CONFIG=no
|
DEFAULT_wxUSE_CONFIG=no
|
||||||
DEFAULT_wxUSE_FONTMAP=no
|
DEFAULT_wxUSE_FONTMAP=no
|
||||||
@@ -634,7 +633,6 @@ else
|
|||||||
DEFAULT_wxUSE_TEXTFILE=yes
|
DEFAULT_wxUSE_TEXTFILE=yes
|
||||||
DEFAULT_wxUSE_SOUND=yes
|
DEFAULT_wxUSE_SOUND=yes
|
||||||
DEFAULT_wxUSE_MEDIACTRL=no
|
DEFAULT_wxUSE_MEDIACTRL=no
|
||||||
DEFAULT_wxUSE_DIRECTSHOW=no
|
|
||||||
DEFAULT_wxUSE_INTL=yes
|
DEFAULT_wxUSE_INTL=yes
|
||||||
DEFAULT_wxUSE_CONFIG=yes
|
DEFAULT_wxUSE_CONFIG=yes
|
||||||
DEFAULT_wxUSE_FONTMAP=yes
|
DEFAULT_wxUSE_FONTMAP=yes
|
||||||
@@ -6219,24 +6217,6 @@ dnl wxMediaCtrl
|
|||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
||||||
if test "$wxUSE_MEDIACTRL" = "yes"; then
|
if test "$wxUSE_MEDIACTRL" = "yes"; then
|
||||||
if test "$wxUSE_MSW" = 1; then
|
|
||||||
dnl -----------------------------------------------------------------------
|
|
||||||
dnl DirectShow MSW
|
|
||||||
dnl -----------------------------------------------------------------------
|
|
||||||
wxUSE_DIRECTSHOW="yes"
|
|
||||||
AC_CHECK_HEADERS([dshow.h], [],
|
|
||||||
[
|
|
||||||
wxUSE_DIRECTSHOW="no"
|
|
||||||
AC_MSG_WARN([DirectShow not installed; consider installing the DirectX7 SDK or higher])
|
|
||||||
],
|
|
||||||
[#include <windows.h>])
|
|
||||||
|
|
||||||
if test "$wxUSE_DIRECTSHOW" = "yes"; then
|
|
||||||
AC_DEFINE(wxUSE_DIRECTSHOW)
|
|
||||||
LIBS="$LIBS -lstrmiids"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl -----------------------------------------------------------------------
|
dnl -----------------------------------------------------------------------
|
||||||
dnl GStreamer
|
dnl GStreamer
|
||||||
dnl -----------------------------------------------------------------------
|
dnl -----------------------------------------------------------------------
|
||||||
|
@@ -35,9 +35,6 @@
|
|||||||
#define wxUSE_ON_FATAL_EXCEPTION 0
|
#define wxUSE_ON_FATAL_EXCEPTION 0
|
||||||
|
|
||||||
// media stuff not supported under CE
|
// media stuff not supported under CE
|
||||||
#undef wxUSE_DIRECTSHOW
|
|
||||||
#define wxUSE_DIRECTSHOW 0
|
|
||||||
|
|
||||||
#undef wxUSE_MEDIACTRL
|
#undef wxUSE_MEDIACTRL
|
||||||
#define wxUSE_MEDIACTRL 0
|
#define wxUSE_MEDIACTRL 0
|
||||||
|
|
||||||
|
@@ -484,20 +484,6 @@
|
|||||||
// Recommended setting: 1
|
// Recommended setting: 1
|
||||||
#define wxUSE_MEDIACTRL 1
|
#define wxUSE_MEDIACTRL 1
|
||||||
|
|
||||||
// Use QuickTime
|
|
||||||
//
|
|
||||||
// Default is 0
|
|
||||||
//
|
|
||||||
// Recommended setting: 1 if you have the QT SDK installed and you need it, else 0
|
|
||||||
#define wxUSE_QUICKTIME 0
|
|
||||||
|
|
||||||
// Use DirectShow (requires linkage to strmiids.lib)
|
|
||||||
//
|
|
||||||
// Default is 0
|
|
||||||
//
|
|
||||||
// Recommended setting: 1 if the DirectX 7 SDK is installed (highly recommended), else 0
|
|
||||||
#define wxUSE_DIRECTSHOW 0
|
|
||||||
|
|
||||||
// Use GStreamer for Unix (req a lot of dependancies)
|
// Use GStreamer for Unix (req a lot of dependancies)
|
||||||
//
|
//
|
||||||
// Default is 0
|
// Default is 0
|
||||||
|
@@ -58,11 +58,6 @@ extern WXDLLIMPEXP_CORE const wxChar *wxCanvasClassName;
|
|||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// Compilation guard for DirectShow
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
#if wxUSE_DIRECTSHOW
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// COM includes
|
// COM includes
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@@ -764,8 +759,6 @@ public:
|
|||||||
DECLARE_DYNAMIC_CLASS(wxAMMediaBackend);
|
DECLARE_DYNAMIC_CLASS(wxAMMediaBackend);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //wxUSE_DIRECTSHOW
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// wxMCIMediaBackend
|
// wxMCIMediaBackend
|
||||||
@@ -834,11 +827,6 @@ public:
|
|||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// QT Compilation Guard
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
#if wxUSE_QUICKTIME
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// QT Includes
|
// QT Includes
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@@ -1089,10 +1077,6 @@ public:
|
|||||||
DECLARE_DYNAMIC_CLASS(wxQTMediaBackend);
|
DECLARE_DYNAMIC_CLASS(wxQTMediaBackend);
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// End QT Compilation Guard
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
#endif //wxUSE_QUICKTIME
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
// IMPLEMENTATION
|
// IMPLEMENTATION
|
||||||
@@ -1104,11 +1088,6 @@ public:
|
|||||||
//
|
//
|
||||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// Only use if user wants it -
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
#if wxUSE_DIRECTSHOW
|
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxAMMediaBackend, wxMediaBackend);
|
IMPLEMENT_DYNAMIC_CLASS(wxAMMediaBackend, wxMediaBackend);
|
||||||
|
|
||||||
// Numerical value for when the graph reaches the stop position
|
// Numerical value for when the graph reaches the stop position
|
||||||
@@ -1300,17 +1279,8 @@ bool wxAMMediaBackend::Load(const wxString& fileName)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_WIN32)
|
wxSetWindowProc(m_hNotifyWnd, wxAMMediaBackend::NotifyWndProc);
|
||||||
::SetWindowLong(m_hNotifyWnd, GWL_WNDPROC,
|
wxSetWindowUserData(m_hNotifyWnd, (void*)this);
|
||||||
(LONG)wxAMMediaBackend::NotifyWndProc);
|
|
||||||
::SetWindowLong(m_hNotifyWnd, GWL_USERDATA,
|
|
||||||
(LONG) this);
|
|
||||||
#else
|
|
||||||
::SetWindowLongPtr(m_hNotifyWnd, GWLP_WNDPROC,
|
|
||||||
(LONG_PTR)wxAMMediaBackend::NotifyWndProc);
|
|
||||||
::SetWindowLongPtr(m_hNotifyWnd, GWL_USERDATA,
|
|
||||||
(LONG) this);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
wxAMVERIFY( m_pME->SetNotifyWindow((LONG_PTR)m_hNotifyWnd,
|
wxAMVERIFY( m_pME->SetNotifyWindow((LONG_PTR)m_hNotifyWnd,
|
||||||
@@ -1625,7 +1595,6 @@ void wxAMMediaBackend::Move(int WXUNUSED(x), int WXUNUSED(y), int w, int h)
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// End of wxAMMediaBackend
|
// End of wxAMMediaBackend
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
#endif //wxUSE_DIRECTSHOW
|
|
||||||
|
|
||||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
//
|
//
|
||||||
@@ -1839,13 +1808,7 @@ bool wxMCIMediaBackend::Load(const wxString& fileName)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_WIN32)
|
wxSetWindowProc(m_hNotifyWnd, wxMCIMediaBackend::NotifyWndProc);
|
||||||
::SetWindowLong(m_hNotifyWnd, GWL_WNDPROC,
|
|
||||||
(LONG)wxMCIMediaBackend::NotifyWndProc);
|
|
||||||
#else
|
|
||||||
::SetWindowLongPtr(m_hNotifyWnd, GWLP_WNDPROC,
|
|
||||||
(LONG_PTR)wxMCIMediaBackend::NotifyWndProc);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
::SetWindowLong(m_hNotifyWnd, GWL_USERDATA,
|
::SetWindowLong(m_hNotifyWnd, GWL_USERDATA,
|
||||||
(LONG) this);
|
(LONG) this);
|
||||||
@@ -2187,8 +2150,6 @@ LRESULT CALLBACK wxMCIMediaBackend::OnNotifyWndProc(HWND hWnd, UINT nMsg,
|
|||||||
// TODO: Dynamically load from qtml.dll
|
// TODO: Dynamically load from qtml.dll
|
||||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
#if wxUSE_QUICKTIME
|
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxQTMediaBackend, wxMediaBackend);
|
IMPLEMENT_DYNAMIC_CLASS(wxQTMediaBackend, wxMediaBackend);
|
||||||
|
|
||||||
//Time between timer calls
|
//Time between timer calls
|
||||||
@@ -2680,9 +2641,8 @@ void wxQTMediaBackend::Move(int WXUNUSED(x), int WXUNUSED(y), int w, int h)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// End QT Compilation Guard
|
// End QT Backend
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
#endif //wxUSE_QUICKTIME
|
|
||||||
|
|
||||||
//in source file that contains stuff you don't directly use
|
//in source file that contains stuff you don't directly use
|
||||||
#include <wx/html/forcelnk.h>
|
#include <wx/html/forcelnk.h>
|
||||||
|
Reference in New Issue
Block a user