Fixes problem in curlhttpsink when qtmux uses faststart.
https://bugzilla.gnome.org/show_bug.cgi?id=762013
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) {