mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
curlbasesink: don't send empty buffers
Fixes problem in curlhttpsink when qtmux uses faststart. https://bugzilla.gnome.org/show_bug.cgi?id=762013
This commit is contained in:
parent
d3fc5b5175
commit
55ba6f1ee8
1 changed files with 7 additions and 2 deletions
|
@ -349,12 +349,17 @@ gst_curl_base_sink_render (GstBaseSink * bsink, GstBuffer * buf)
|
|||
|
||||
sink = GST_CURL_BASE_SINK (bsink);
|
||||
|
||||
GST_OBJECT_LOCK (sink);
|
||||
|
||||
gst_buffer_map (buf, &map, GST_MAP_READ);
|
||||
data = map.data;
|
||||
size = map.size;
|
||||
|
||||
if (size == 0) {
|
||||
gst_buffer_unmap (buf, &map);
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
||||
GST_OBJECT_LOCK (sink);
|
||||
|
||||
/* check if the transfer thread has encountered problems while the
|
||||
* pipeline thread was working elsewhere */
|
||||
if (sink->flow_ret != GST_FLOW_OK) {
|
||||
|
|
Loading…
Reference in a new issue