mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
xvimagesink: It's not a bad thing if the preferred video format needs less bytes per frame
This commit is contained in:
parent
adcb6e642d
commit
2a08bcc53f
1 changed files with 0 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue