diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-01-22 14:06:31 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2018-01-25 20:20:08 +0200 |
commit | b174a91a1a768135b2f7952c89faa16928764b78 (patch) | |
tree | 1796174e6063481bf532219428294857461bc94d /sys/directsound/gstdirectsoundsrc.c | |
parent | c8c32a720091779a39be52ae3eacd7fbc6adff34 (diff) | |
download | gstreamer-plugins-bad-b174a91a1a768135b2f7952c89faa16928764b78.tar.gz |
directsoundsrc: Add support for a DeviceProvider
https://bugzilla.gnome.org/show_bug.cgi?id=792782
Diffstat (limited to 'sys/directsound/gstdirectsoundsrc.c')
-rw-r--r-- | sys/directsound/gstdirectsoundsrc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/directsound/gstdirectsoundsrc.c b/sys/directsound/gstdirectsoundsrc.c index 0df4f4fc5..be6b2c894 100644 --- a/sys/directsound/gstdirectsoundsrc.c +++ b/sys/directsound/gstdirectsoundsrc.c @@ -138,10 +138,7 @@ static GstStaticPadTemplate directsound_src_src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("audio/x-raw, " - "format = (string) { S16LE, S8 }, " - "layout = (string) interleaved, " - "rate = (int) [ 1, MAX ], " "channels = (int) [ 1, 2 ]")); + GST_STATIC_CAPS (GST_DIRECTSOUND_SRC_CAPS)); #define gst_directsound_src_parent_class parent_class G_DEFINE_TYPE_WITH_CODE (GstDirectSoundSrc, gst_directsound_src, @@ -427,7 +424,8 @@ gst_directsound_src_open (GstAudioSrc * asrc) } } /* Create capture object */ - hRes = DirectSoundCaptureCreate (dsoundsrc->device_guid, &dsoundsrc->pDSC, NULL); + hRes = + DirectSoundCaptureCreate (dsoundsrc->device_guid, &dsoundsrc->pDSC, NULL); if (FAILED (hRes)) { |