mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
- UNITS -> DEFAULT
Original commit message from CVS: - UNITS -> DEFAULT
This commit is contained in:
parent
10bb03148d
commit
fd11a17a24
1 changed files with 1 additions and 7 deletions
|
@ -290,9 +290,6 @@ gst_v4l2src_srcconvert (GstPad *pad,
|
||||||
case GST_FORMAT_TIME:
|
case GST_FORMAT_TIME:
|
||||||
switch (*dest_format) {
|
switch (*dest_format) {
|
||||||
case GST_FORMAT_DEFAULT:
|
case GST_FORMAT_DEFAULT:
|
||||||
*dest_format = GST_FORMAT_UNITS;
|
|
||||||
/* fall-through */
|
|
||||||
case GST_FORMAT_UNITS:
|
|
||||||
*dest_value = src_value * fps / GST_SECOND;
|
*dest_value = src_value * fps / GST_SECOND;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -300,11 +297,8 @@ gst_v4l2src_srcconvert (GstPad *pad,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GST_FORMAT_UNITS:
|
case GST_FORMAT_DEFAULT:
|
||||||
switch (*dest_format) {
|
switch (*dest_format) {
|
||||||
case GST_FORMAT_DEFAULT:
|
|
||||||
*dest_format = GST_FORMAT_TIME;
|
|
||||||
/* fall-through */
|
|
||||||
case GST_FORMAT_TIME:
|
case GST_FORMAT_TIME:
|
||||||
*dest_value = src_value * GST_SECOND / fps;
|
*dest_value = src_value * GST_SECOND / fps;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue