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:
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue