- UNITS -> DEFAULT

Original commit message from CVS:
- UNITS -> DEFAULT
This commit is contained in:
Wim Taymans 2003-05-24 10:47:37 +00:00
parent 10bb03148d
commit fd11a17a24

View file

@ -290,9 +290,6 @@ gst_v4l2src_srcconvert (GstPad *pad,
case GST_FORMAT_TIME:
switch (*dest_format) {
case GST_FORMAT_DEFAULT:
*dest_format = GST_FORMAT_UNITS;
/* fall-through */
case GST_FORMAT_UNITS:
*dest_value = src_value * fps / GST_SECOND;
break;
default:
@ -300,11 +297,8 @@ gst_v4l2src_srcconvert (GstPad *pad,
}
break;
case GST_FORMAT_UNITS:
switch (*dest_format) {
case GST_FORMAT_DEFAULT:
*dest_format = GST_FORMAT_TIME;
/* fall-through */
switch (*dest_format) {
case GST_FORMAT_TIME:
*dest_value = src_value * GST_SECOND / fps;
break;