summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/v4l2/gstv4l2src.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index a2219606..f5c87ce9 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -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:
+ case GST_FORMAT_DEFAULT:
switch (*dest_format) {
- case GST_FORMAT_DEFAULT:
- *dest_format = GST_FORMAT_TIME;
- /* fall-through */
case GST_FORMAT_TIME:
*dest_value = src_value * GST_SECOND / fps;
break;