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:
David Fernandez 2016-02-16 15:10:34 +01:00 committed by Tim-Philipp Müller
parent d3fc5b5175
commit 55ba6f1ee8

View file

@ -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) {