mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
gst: sink: Minor style consistency fixup
This commit is contained in:
parent
4c200183b9
commit
dfdc3e333a
1 changed files with 5 additions and 8 deletions
|
|
@ -944,15 +944,12 @@ gst_pipewire_sink_render (GstBaseSink * bsink, GstBuffer * buffer)
|
||||||
gboolean copied = FALSE;
|
gboolean copied = FALSE;
|
||||||
buf_size = 0; // to break from the loop
|
buf_size = 0; // to break from the loop
|
||||||
|
|
||||||
/*
|
/* splitting of buffers in the case of video might break the frame layout
|
||||||
splitting of buffers in the case of video might break the frame layout
|
* and that seems to be causing issues while retrieving the buffers on the receiver
|
||||||
and that seems to be causing issues while retrieving the buffers on the receiver
|
* side. Hence use the video_frame_map to copy the buffer of bigger size into the
|
||||||
side. Hence use the video_frame_map to copy the buffer of bigger size into the
|
* pipewirepool's buffer */
|
||||||
pipewirepool's buffer
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (!gst_video_frame_map (&dst, &pwsink->stream->pool->video_info, b,
|
if (!gst_video_frame_map (&dst, &pwsink->stream->pool->video_info, b, GST_MAP_WRITE)) {
|
||||||
GST_MAP_WRITE)) {
|
|
||||||
GST_ERROR_OBJECT(pwsink, "Failed to map dest buffer");
|
GST_ERROR_OBJECT(pwsink, "Failed to map dest buffer");
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue