mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
ksvideosrc: Warn for deprecated plugin use
This plugin should not be used any more Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3544>
This commit is contained in:
parent
1e124682c8
commit
f588932547
1 changed files with 17 additions and 0 deletions
|
@ -47,6 +47,8 @@
|
|||
#include "ksvideohelpers.h"
|
||||
#include "ksdeviceprovider.h"
|
||||
|
||||
#include <versionhelpers.h>
|
||||
|
||||
#define DEFAULT_DEVICE_PATH NULL
|
||||
#define DEFAULT_DEVICE_NAME NULL
|
||||
#define DEFAULT_DEVICE_INDEX -1
|
||||
|
@ -240,6 +242,21 @@ gst_ks_video_src_init (GstKsVideoSrc * self)
|
|||
priv->device_index = DEFAULT_DEVICE_INDEX;
|
||||
priv->do_stats = DEFAULT_DO_STATS;
|
||||
priv->enable_quirks = DEFAULT_ENABLE_QUIRKS;
|
||||
|
||||
/* MediaFoundation does not support MinGW build */
|
||||
#ifdef _MSC_VER
|
||||
{
|
||||
static gsize deprecated_warn = 0;
|
||||
|
||||
if (g_once_init_enter (&deprecated_warn)) {
|
||||
if (IsWindows8OrGreater ()) {
|
||||
g_warning ("\"ksvideosrc\" is deprecated and will be removed"
|
||||
"in the future. Use \"mfvideosrc\" element instead");
|
||||
}
|
||||
g_once_init_leave (&deprecated_warn, 1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue