Add dummy wxGStreamerMediaBackend::QueryVideoSizeFromElement()

This is not used, but having it avoids warnings about breaking ABI
compatibility with 3.0.2 when using GStreamer 1.0 in 3.0.3.
This commit is contained in:
Vadim Zeitlin
2017-04-22 16:30:36 +02:00
parent fd2b143a48
commit 6288f8e2e6

View File

@@ -693,7 +693,18 @@ bool wxGStreamerMediaBackend::QueryVideoSizeFromElement(GstElement* element)
return true;
}
#endif
#else // GStreamer 1.0
// This method is unused, but still provide just to avoid warnings about ABI
// incompatible changes compared to the previous versions, in which it always
// existed.
bool
wxGStreamerMediaBackend::QueryVideoSizeFromElement(GstElement* WXUNUSED(element))
{
return false;
}
#endif // GStreamer 0.x/1.0
//-----------------------------------------------------------------------------
// wxGStreamerMediaBackend::QueryVideoSizeFromPad