summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2014-10-15 19:05:02 +0200
committerWim Taymans <wtaymans@redhat.com>2014-10-24 11:27:59 +0200
commitf54f5238d36e101054ae2eaa352da8d3064ac465 (patch)
tree16f29d3f9dbf46e9467b9c47c57846f4778d2825
parent9efb862d57b165c3e34c2e50107e27847a9ecb2d (diff)
video-convert: don't try to remove 0 lines
-rw-r--r--gst-libs/gst/video/video-converter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/video/video-converter.c b/gst-libs/gst/video/video-converter.c
index 616a96093..f6188059c 100644
--- a/gst-libs/gst/video/video-converter.c
+++ b/gst-libs/gst/video/video-converter.c
@@ -183,7 +183,8 @@ gst_line_cache_get_lines (GstLineCache * cache, gint idx, gint n_lines)
cache->free_line (cache, cache->first + i,
*(cache->lines->pdata + i), cache->free_line_data);
}
- g_ptr_array_remove_range (cache->lines, 0, to_remove);
+ if (to_remove > 0)
+ g_ptr_array_remove_range (cache->lines, 0, to_remove);
cache->first = idx;
} else if (idx < cache->first) {
gst_line_cache_clear (cache);