mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +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... */
|
/* We found no suitable image in the pool. Creating... */
|
||||||
GST_DEBUG_OBJECT (xvimagesink, "no usable image in pool, creating xvimage");
|
GST_DEBUG_OBJECT (xvimagesink, "no usable image in pool, creating xvimage");
|
||||||
xvimage = gst_xvimagesink_xvimage_new (xvimagesink, intersection);
|
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);
|
g_mutex_unlock (xvimagesink->pool_lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue