+2005-10-27 Wim Taymans <wim@fluendo.com>
+
+ * sys/oss/gstosssrc.c: (gst_oss_src_prepare):
+ Set correct format on oss instead of a silly value.
+
2005-10-27 Julien MOUTTE <julien@moutte.net>
* gst/videobox/gstvideobox.c: (gst_video_box_class_init),
GstOssSrc *oss;
struct audio_buf_info info;
int mode;
- int tmp;
+ int fmt, tmp;
oss = GST_OSS_SRC (asrc);
if (fcntl (oss->fd, F_SETFL, mode) == -1)
goto non_block;
- tmp = gst_oss_src_get_format (spec->format);
- if (tmp == 0)
+ fmt = gst_oss_src_get_format (spec->format);
+ if (fmt == 0)
goto wrong_format;
tmp = ilog2 (spec->segsize);
SET_PARAM (oss, SNDCTL_DSP_RESET, 0);
- SET_PARAM (oss, SNDCTL_DSP_SETFMT, tmp);
+ SET_PARAM (oss, SNDCTL_DSP_SETFMT, fmt);
if (spec->channels == 2)
SET_PARAM (oss, SNDCTL_DSP_STEREO, 1);
SET_PARAM (oss, SNDCTL_DSP_CHANNELS, spec->channels);