curlbasesink: don't replace specific error messages with a generic one

Only set an error if we haven't set one already.
This commit is contained in:
Stefan Sauer 2014-09-24 22:06:21 +02:00
parent 2e51ba1219
commit a80cde8cb6

View file

@ -1134,7 +1134,9 @@ gst_curl_base_sink_transfer_setup_unlocked (GstCurlBaseSink * sink)
}
if (!gst_curl_base_sink_transfer_set_options_unlocked (sink)) {
sink->error = g_strdup ("failed to setup curl easy handle");
if (!sink->error) {
sink->error = g_strdup ("failed to setup curl easy handle");
}
return FALSE;
}