From: Thomas Vander Stichele Date: Sun, 2 Jun 2002 15:57:30 +0000 (+0000) Subject: UNITS X-Git-Tag: CAPS~368 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=227da5468807034c07337510c36503018daeaa96;p=platform%2Fupstream%2Fgst-plugins-good.git UNITS Original commit message from CVS: UNITS --- diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index c0bc4bd3f..207e439bb 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;