summaryrefslogtreecommitdiffstats
path: root/sys/directsound
diff options
context:
space:
mode:
authorSébastien Moutte <sebastien@moutte.net>2006-03-03 23:45:23 +0000
committerSébastien Moutte <sebastien@moutte.net>2006-03-03 23:45:23 +0000
commitc9d85848c7df996f69ad6583e727886d0e66e141 (patch)
tree851062f7209511e227b4dd1845a852cf01a4ba2d /sys/directsound
parent11d9e3d4b11b786c1c2e633526ed9295834e7614 (diff)
sys/: sinks are now using GST_RANK_PRIMARY to be used with autodectection
Original commit message from CVS: * sys/directdraw: * sys/directsound: sinks are now using GST_RANK_PRIMARY to be used with autodectection * win32/vs6: project files updated to fix some bugs * win32/vs7: * win32/vs8: vs7 and vs8 project files added
Diffstat (limited to 'sys/directsound')
-rw-r--r--sys/directsound/gstdirectsoundplugin.c2
-rw-r--r--sys/directsound/gstdirectsoundsink.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/directsound/gstdirectsoundplugin.c b/sys/directsound/gstdirectsoundplugin.c
index c789b2bf..aaa496f3 100644
--- a/sys/directsound/gstdirectsoundplugin.c
+++ b/sys/directsound/gstdirectsoundplugin.c
@@ -29,7 +29,7 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
- if (!gst_element_register (plugin, "directsoundsink", GST_RANK_NONE,
+ if (!gst_element_register (plugin, "directsoundsink", GST_RANK_PRIMARY,
GST_TYPE_DIRECTSOUND_SINK))
return FALSE;
diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c
index 3d7ab997..13e077a1 100644
--- a/sys/directsound/gstdirectsoundsink.c
+++ b/sys/directsound/gstdirectsoundsink.c
@@ -121,7 +121,7 @@ gst_directsoundsink_class_init (GstDirectSoundSinkClass * klass)
gstbaseaudiosink_class = (GstBaseAudioSinkClass *) klass;
gstaudiosink_class = (GstAudioSinkClass *) klass;
- parent_class = g_type_class_ref (GST_TYPE_DIRECTSOUND_SINK);
+ parent_class = g_type_class_ref (GST_TYPE_BASE_AUDIO_SINK);
gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_directsoundsink_dispose);
gobject_class->get_property =
@@ -212,8 +212,7 @@ gst_directsoundsink_open (GstAudioSink * asink)
return FALSE;
}
- if (FAILED (hRes =
- IDirectSound_SetCooperativeLevel (dsoundsink->pDS,
+ if (FAILED (hRes = IDirectSound_SetCooperativeLevel (dsoundsink->pDS,
GetDesktopWindow (), DSSCL_PRIORITY))) {
GST_ELEMENT_ERROR (dsoundsink, RESOURCE, OPEN_READ,
("gst_directsoundsink_open: IDirectSound_SetCooperativeLevel: %s",