curlhttpsink: Enable content type changes

Makes it possible to change content type without having to
reinitialize the element, typically after reset.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/41
This commit is contained in:
Jonathan Karlsson 2018-11-19 11:39:50 +01:00 committed by Sebastian Dröge
parent 19d34f6b5e
commit b025736899

View file

@ -460,10 +460,6 @@ gst_curl_http_sink_set_mime_type (GstCurlBaseSink * bcsink, GstCaps * caps)
GstStructure *structure;
const gchar *mime_type;
if (sink->content_type != NULL) {
return;
}
structure = gst_caps_get_structure (caps, 0);
mime_type = gst_structure_get_name (structure);