mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
UNITS
Original commit message from CVS: UNITS
This commit is contained in:
parent
a1bdcdc0c8
commit
227da54688
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue