From 227da5468807034c07337510c36503018daeaa96 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 2 Jun 2002 15:57:30 +0000 Subject: [PATCH] UNITS Original commit message from CVS: UNITS --- sys/oss/gstosssink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index c0bc4bd3f9..207e439bba 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -595,7 +595,7 @@ gst_osssink_convert (GstPad *pad, GstFormat src_format, gint64 src_value, case GST_FORMAT_TIME: *dest_value = src_value * GST_SECOND / osssink->bps; break; - case GST_FORMAT_UNIT: + case GST_FORMAT_UNITS: *dest_value = src_value / (osssink->channels * osssink->width); break; default: @@ -609,14 +609,14 @@ gst_osssink_convert (GstPad *pad, GstFormat src_format, gint64 src_value, case GST_FORMAT_BYTES: *dest_value = src_value * osssink->bps / GST_SECOND; break; - case GST_FORMAT_UNIT: + case GST_FORMAT_UNITS: *dest_value = osssink->frequency; break; default: res = FALSE; } break; - case GST_FORMAT_UNIT: + case GST_FORMAT_UNITS: switch (*dest_format) { case GST_FORMAT_DEFAULT: *dest_format = GST_FORMAT_TIME;