mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
x[v]imagesink: remove size check
We can't to a size check like that, the strides might be different and the copy will then take care of that just fine.
This commit is contained in:
parent
9212619549
commit
17715ac8ae
2 changed files with 0 additions and 26 deletions
|
@ -1322,9 +1322,6 @@ gst_ximagesink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
|
||||||
if (res != GST_FLOW_OK)
|
if (res != GST_FLOW_OK)
|
||||||
goto no_buffer;
|
goto no_buffer;
|
||||||
|
|
||||||
if (gst_buffer_get_size (to_put) < gst_buffer_get_size (buf))
|
|
||||||
goto wrong_size;
|
|
||||||
|
|
||||||
GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, ximagesink,
|
GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, ximagesink,
|
||||||
"slow copy into bufferpool buffer %p", to_put);
|
"slow copy into bufferpool buffer %p", to_put);
|
||||||
|
|
||||||
|
@ -1365,16 +1362,6 @@ no_buffer:
|
||||||
GST_WARNING_OBJECT (ximagesink, "could not create image");
|
GST_WARNING_OBJECT (ximagesink, "could not create image");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
wrong_size:
|
|
||||||
{
|
|
||||||
GST_ELEMENT_ERROR (ximagesink, RESOURCE, WRITE,
|
|
||||||
("Failed to create output image buffer"),
|
|
||||||
("XServer allocated buffer size did not match input buffer %"
|
|
||||||
G_GSIZE_FORMAT " - %" G_GSIZE_FORMAT, gst_buffer_get_size (to_put),
|
|
||||||
gst_buffer_get_size (buf)));
|
|
||||||
res = GST_FLOW_ERROR;
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
invalid_buffer:
|
invalid_buffer:
|
||||||
{
|
{
|
||||||
/* No Window available to put our image into */
|
/* No Window available to put our image into */
|
||||||
|
|
|
@ -1832,9 +1832,6 @@ gst_xvimagesink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
|
||||||
if (res != GST_FLOW_OK)
|
if (res != GST_FLOW_OK)
|
||||||
goto no_buffer;
|
goto no_buffer;
|
||||||
|
|
||||||
if (gst_buffer_get_size (to_put) < gst_buffer_get_size (buf))
|
|
||||||
goto wrong_size;
|
|
||||||
|
|
||||||
GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, xvimagesink,
|
GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, xvimagesink,
|
||||||
"slow copy into bufferpool buffer %p", to_put);
|
"slow copy into bufferpool buffer %p", to_put);
|
||||||
|
|
||||||
|
@ -1875,16 +1872,6 @@ no_buffer:
|
||||||
GST_WARNING_OBJECT (xvimagesink, "could not create image");
|
GST_WARNING_OBJECT (xvimagesink, "could not create image");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
wrong_size:
|
|
||||||
{
|
|
||||||
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, WRITE,
|
|
||||||
("Failed to create output image buffer"),
|
|
||||||
("XServer allocated buffer size did not match input buffer %"
|
|
||||||
G_GSIZE_FORMAT " - %" G_GSIZE_FORMAT, gst_buffer_get_size (to_put),
|
|
||||||
gst_buffer_get_size (buf)));
|
|
||||||
res = GST_FLOW_ERROR;
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
invalid_buffer:
|
invalid_buffer:
|
||||||
{
|
{
|
||||||
/* No Window available to put our image into */
|
/* No Window available to put our image into */
|
||||||
|
|
Loading…
Reference in a new issue