summaryrefslogtreecommitdiffstats
path: root/sys/oss/gstosscommon.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-12-10 20:41:06 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-12-10 20:41:06 +0000
commitdff7f0496f2bc5c416c48bc1261203a4fc68cd5a (patch)
treea80aa33d3c3dbf52a2b4ea8bf871b5849e4f6ad5 /sys/oss/gstosscommon.c
parent753a083ade3c301c40d26f2a6382822163d9b312 (diff)
Properly reset the internal state without leaking the filehandle
Original commit message from CVS: Properly reset the internal state without leaking the filehandle
Diffstat (limited to 'sys/oss/gstosscommon.c')
-rw-r--r--sys/oss/gstosscommon.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/oss/gstosscommon.c b/sys/oss/gstosscommon.c
index 50128c79..65c8a780 100644
--- a/sys/oss/gstosscommon.c
+++ b/sys/oss/gstosscommon.c
@@ -105,6 +105,12 @@ gst_osscommon_init (GstOssCommon *common)
common->device = g_strdup ("/dev/dsp");
common->fd = -1;
+ gst_osscommon_reset (common);
+}
+
+void
+gst_osscommon_reset (GstOssCommon *common)
+{
common->law = 0;
common->endianness = G_BYTE_ORDER;
common->sign = TRUE;