mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
directsoundsrc: Remove unused variable
This commit is contained in:
parent
4b30e11a2d
commit
6f4f84fea0
1 changed files with 16 additions and 19 deletions
|
@ -192,8 +192,7 @@ gst_directsound_src_class_init (GstDirectSoundSrcClass * klass)
|
|||
g_object_class_install_property
|
||||
(gobject_class, PROP_DEVICE_NAME,
|
||||
g_param_spec_string ("device-name", "Device name",
|
||||
"Human-readable name of the sound device", NULL,
|
||||
G_PARAM_READWRITE));
|
||||
"Human-readable name of the sound device", NULL, G_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static GstCaps *
|
||||
|
@ -269,8 +268,8 @@ gst_directsound_src_init (GstDirectSoundSrc * src)
|
|||
* Gets the GUID of request audio device
|
||||
*/
|
||||
static BOOL CALLBACK
|
||||
gst_directsound_enum_callback( GUID* pGUID, TCHAR* strDesc, TCHAR* strDrvName,
|
||||
VOID* pContext )
|
||||
gst_directsound_enum_callback (GUID * pGUID, TCHAR * strDesc,
|
||||
TCHAR * strDrvName, VOID * pContext)
|
||||
{
|
||||
GstDirectSoundSrc *dsoundsrc = GST_DIRECTSOUND_SRC (pContext);
|
||||
|
||||
|
@ -295,7 +294,6 @@ gst_directsound_src_open (GstAudioSrc * asrc)
|
|||
{
|
||||
GstDirectSoundSrc *dsoundsrc;
|
||||
HRESULT hRes; /* Result for windows functions */
|
||||
LPGUID guid;
|
||||
|
||||
GST_DEBUG_OBJECT (asrc, "opening directsoundsrc");
|
||||
|
||||
|
@ -317,9 +315,8 @@ gst_directsound_src_open (GstAudioSrc * asrc)
|
|||
goto capture_function;
|
||||
}
|
||||
|
||||
hRes =
|
||||
DirectSoundCaptureEnumerate((LPDSENUMCALLBACK)gst_directsound_enum_callback,
|
||||
(VOID*)dsoundsrc);
|
||||
hRes = DirectSoundCaptureEnumerate ((LPDSENUMCALLBACK)
|
||||
gst_directsound_enum_callback, (VOID *) dsoundsrc);
|
||||
if (FAILED (hRes)) {
|
||||
goto capture_enumerate;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue