projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dd059b
)
video-converter: pass output line correctly
author
Wim Taymans
<wtaymans@redhat.com>
Wed, 5 Nov 2014 10:51:44 +0000
(11:51 +0100)
committer
Wim Taymans
<wtaymans@redhat.com>
Wed, 5 Nov 2014 10:55:21 +0000
(11:55 +0100)
gst-libs/gst/video/video-converter.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/video/video-converter.c
b/gst-libs/gst/video/video-converter.c
index ab3edfc3f2d8053c0630496b15212509c48d9c5a..80d33cd3bd72b8819c6e198e015c8bb5976f3b35 100644
(file)
--- a/
gst-libs/gst/video/video-converter.c
+++ b/
gst-libs/gst/video/video-converter.c
@@
-219,6
+219,8
@@
gst_line_cache_get_lines (GstLineCache * cache, gint out_line, gint in_line,
}
while (TRUE) {
+ gint oline;
+
if (cache->first <= in_line
&& in_line + n_lines <= cache->first + (gint) cache->lines->len) {
return cache->lines->pdata + (in_line - cache->first);
@@
-227,7
+229,9
@@
gst_line_cache_get_lines (GstLineCache * cache, gint out_line, gint in_line,
if (cache->need_line == NULL)
break;
- if (!cache->need_line (cache, out_line, cache->first + cache->lines->len,
+ oline = out_line + cache->first + cache->lines->len - in_line;
+
+ if (!cache->need_line (cache, oline, cache->first + cache->lines->len,
cache->need_line_data))
break;
}