From 2a08bcc53f223d1092e3520b67c33c40532db813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 11 Aug 2010 17:00:54 +0200 Subject: [PATCH] xvimagesink: It's not a bad thing if the preferred video format needs less bytes per frame --- sys/xvimage/xvimagesink.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index b26dd3e4e6..f1a152893a 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -2588,13 +2588,6 @@ reuse_last_caps: /* We found no suitable image in the pool. Creating... */ GST_DEBUG_OBJECT (xvimagesink, "no usable image in pool, creating xvimage"); xvimage = gst_xvimagesink_xvimage_new (xvimagesink, intersection); - if (xvimage && xvimage->size < size) { - /* This image is unusable. Destroying... */ - GST_LOG_OBJECT (xvimagesink, "Discarding allocated buffer as unsuitable. " - "Falling back to normal buffer"); - gst_xvimage_buffer_free (xvimage); - xvimage = NULL; - } } g_mutex_unlock (xvimagesink->pool_lock);