summaryrefslogtreecommitdiffstats
path: root/sys/v4l2
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2003-05-24 10:47:37 +0000
committerWim Taymans <wim.taymans@gmail.com>2003-05-24 10:47:37 +0000
commit328cce2c69794f9cb0b390d301c0f78c24281ec9 (patch)
tree8b7b5064584c6bf4ea693591f9c339a6e19928ed /sys/v4l2
parented75cd44e465ca78689652fa8a9c6e9855612e8a (diff)
downloadgst-plugins-bad-328cce2c69794f9cb0b390d301c0f78c24281ec9.tar.gz
gst-plugins-bad-328cce2c69794f9cb0b390d301c0f78c24281ec9.tar.bz2
gst-plugins-bad-328cce2c69794f9cb0b390d301c0f78c24281ec9.zip
- UNITS -> DEFAULT
Original commit message from CVS: - UNITS -> DEFAULT
Diffstat (limited to 'sys/v4l2')
-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;