xvimagesink: It's not a bad thing if the preferred video format needs less bytes per frame

This commit is contained in:
Sebastian Dröge 2010-08-11 17:00:54 +02:00
parent adcb6e642d
commit 2a08bcc53f

View file

@ -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);