diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2004-07-07 16:11:39 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2004-07-07 16:11:39 +0000 |
commit | f68667a5e5d2ce3c30724e84846cd94ec0c6127f (patch) | |
tree | 03f54c51f5aeba84c5e54b3ef02bd6310c9c90f7 /sys/oss/gstosselement.c | |
parent | 87aff668ef0b5c4fbdcb23f2ca130d7caee83ee7 (diff) |
sys/oss/: Fix offset on osssrc.
Original commit message from CVS:
* sys/oss/gstosselement.c: (gst_osselement_reset),
(gst_osselement_parse_caps):
* sys/oss/gstosselement.h:
* sys/oss/gstosssrc.c: (gst_osssrc_get):
Fix offset on osssrc.
Diffstat (limited to 'sys/oss/gstosselement.c')
-rw-r--r-- | sys/oss/gstosselement.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c index 5d17dfe2..5e72ef1c 100644 --- a/sys/oss/gstosselement.c +++ b/sys/oss/gstosselement.c @@ -456,6 +456,7 @@ gst_osselement_reset (GstOssElement * oss) oss->rate = 44100; oss->fragment = 0; oss->bps = 0; + oss->sample_width = 0; /* AFMT_*_BE not available on all OSS includes (e.g. FBSD) */ #ifdef WORDS_BIGENDIAN @@ -545,6 +546,7 @@ gst_osselement_parse_caps (GstOssElement * oss, const GstCaps * caps) gst_structure_get_int (structure, "channels", &oss->channels); gst_structure_get_int (structure, "rate", &oss->rate); + oss->sample_width = bps * oss->channels; oss->bps = bps * oss->channels * oss->rate; oss->format = format; |