From: Thomas V. S. <tho...@us...> - 2002-06-02 15:57:44
|
CVS Root: /cvsroot/gstreamer Module: gst-plugins Changes by: thomasvs Date: Sun Jun 02 2002 08:57:43 PDT Log message: UNITS Modified files: sys/oss : gstosssink.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/sys/oss/gstosssink.c.diff?r1=1.30&r2=1.31 ====Begin Diffs==== Index: gstosssink.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/sys/oss/gstosssink.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- gstosssink.c 2 Jun 2002 14:28:04 -0000 1.30 +++ gstosssink.c 2 Jun 2002 15:57:30 -0000 1.31 @@ -595,7 +595,7 @@ 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 @@ 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; |