mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 08:42:32 +00:00
wasapi: Increase rank to prefer over directsoundsrc
Directsoundsrc/sink have multiple issues, most of which cannot be fixed at all because the API is deprecated and is implemented as a compatibility wrapper around WASAPI since Vista. Users and developers should now use the wasapisrc/sink elements, and future development efforts should go towards that.
This commit is contained in:
parent
7771488edb
commit
c2956036b8
2 changed files with 5 additions and 3 deletions
|
@ -35,7 +35,7 @@
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
if (!gst_element_register (plugin, "directsoundsrc", GST_RANK_PRIMARY,
|
if (!gst_element_register (plugin, "directsoundsrc", GST_RANK_SECONDARY,
|
||||||
GST_TYPE_DIRECTSOUND_SRC))
|
GST_TYPE_DIRECTSOUND_SRC))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2008 Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
|
* Copyright (C) 2008 Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
|
||||||
|
* Copyright (C) 2018 Centricular Ltd.
|
||||||
|
* Author: Nirbheek Chauhan <nirbheek@centricular.com>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Library General Public
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
@ -30,11 +32,11 @@ GST_DEBUG_CATEGORY (gst_wasapi_debug);
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
if (!gst_element_register (plugin, "wasapisink", GST_RANK_NONE,
|
if (!gst_element_register (plugin, "wasapisink", GST_RANK_PRIMARY,
|
||||||
GST_TYPE_WASAPI_SINK))
|
GST_TYPE_WASAPI_SINK))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!gst_element_register (plugin, "wasapisrc", GST_RANK_NONE,
|
if (!gst_element_register (plugin, "wasapisrc", GST_RANK_PRIMARY,
|
||||||
GST_TYPE_WASAPI_SRC))
|
GST_TYPE_WASAPI_SRC))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue