curlhttpsink: Only set MIME as content-type if not set by property
authorRobert Rosengren <robertr@axis.com>
Thu, 7 Jul 2022 07:20:04 +0000 (09:20 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 29 Aug 2022 09:40:23 +0000 (09:40 +0000)
commit8677d573b73af2b22f350ff48fa04635703ffebe
tree88c20053f281141e1101f5c44a2f87d15558a092
parentc3cf9521a58286c1242d8548b096c644b8a76a78
curlhttpsink: Only set MIME as content-type if not set by property

Setting the content-type property shall override internally detected MIME
types, to make it possible to do as following example (where audio/basic to be
used prior to audio/x-mulaw):

gst-launch-1.0 ... ! mulawenc ! audio/x-mulaw,rate=8000,channels=1 !
  curlhttpsink location=<url> content-type=audio/basic

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2732>
subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.c
subprojects/gst-plugins-bad/ext/curl/gstcurlhttpsink.h