Add GstPlayer 1.7.2.1+ based GStreamer backend

Use new simpler API available in the latest GStreamer if available.

Closes #226.
This commit is contained in:
Sebastian Dröge
2016-03-05 02:48:55 +01:00
committed by Vadim Zeitlin
parent b07ce632b6
commit 6ea8ba1e9c
9 changed files with 695 additions and 32 deletions

View File

@@ -11,12 +11,10 @@
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#if wxUSE_MEDIACTRL
#if wxUSE_MEDIACTRL && wxUSE_GSTREAMER && !wxUSE_GSTREAMER_PLAYER
#include "wx/mediactrl.h"
#if wxUSE_GSTREAMER
#include <gst/gst.h> // main gstreamer header
#if GST_CHECK_VERSION(1,0,0)
@@ -1589,10 +1587,8 @@ double wxGStreamerMediaBackend::GetVolume()
return dVolume;
}
#endif //wxUSE_GSTREAMER
// Force link into main library so this backend can be loaded
#include "wx/html/forcelnk.h"
FORCE_LINK_ME(basewxmediabackends)
#endif //wxUSE_MEDIACTRL
#endif // wxUSE_MEDIACTRL && wxUSE_GSTREAMER && !wxUSE_GSTREAMER_PLAYER