Lines Matching refs:basesink
180 set_ftp_dynamic_options_unlocked (GstCurlBaseSink * basesink) in set_ftp_dynamic_options_unlocked() argument
183 GstCurlFtpSink *sink = GST_CURL_FTP_SINK (basesink); in set_ftp_dynamic_options_unlocked()
207 last_slash = strrchr (basesink->file_name, '/'); in set_ftp_dynamic_options_unlocked()
210 g_strndup (basesink->file_name, last_slash - basesink->file_name); in set_ftp_dynamic_options_unlocked()
215 rename_to = g_strdup_printf ("%s%s", RENAME_TO, basesink->file_name); in set_ftp_dynamic_options_unlocked()
220 tmp = g_strdup_printf ("%s%s", basesink->url, uploadfile_as); in set_ftp_dynamic_options_unlocked()
228 res = curl_easy_setopt (basesink->curl, CURLOPT_URL, tmp); in set_ftp_dynamic_options_unlocked()
231 basesink->error = g_strdup_printf ("failed to set URL: %s", in set_ftp_dynamic_options_unlocked()
237 curl_easy_setopt (basesink->curl, CURLOPT_POSTQUOTE, sink->headerlist); in set_ftp_dynamic_options_unlocked()
239 basesink->error = g_strdup_printf ("failed to set post quote: %s", in set_ftp_dynamic_options_unlocked()
248 tmp = g_strdup_printf ("%s%s", basesink->url, basesink->file_name); in set_ftp_dynamic_options_unlocked()
249 res = curl_easy_setopt (basesink->curl, CURLOPT_URL, tmp); in set_ftp_dynamic_options_unlocked()
252 basesink->error = g_strdup_printf ("failed to set URL: %s", in set_ftp_dynamic_options_unlocked()
262 set_ftp_options_unlocked (GstCurlBaseSink * basesink) in set_ftp_options_unlocked() argument
264 GstCurlFtpSink *sink = GST_CURL_FTP_SINK (basesink); in set_ftp_options_unlocked()
267 res = curl_easy_setopt (basesink->curl, CURLOPT_UPLOAD, 1L); in set_ftp_options_unlocked()
269 basesink->error = g_strdup_printf ("failed to prepare for upload: %s", in set_ftp_options_unlocked()
276 res = curl_easy_setopt (basesink->curl, CURLOPT_FTPPORT, in set_ftp_options_unlocked()
280 basesink->error = g_strdup_printf ("failed to set up active mode: %s", in set_ftp_options_unlocked()
290 res = curl_easy_setopt (basesink->curl, CURLOPT_FTP_USE_EPSV, 0); in set_ftp_options_unlocked()
292 basesink->error = in set_ftp_options_unlocked()
301 res = curl_easy_setopt (basesink->curl, CURLOPT_FTP_CREATE_MISSING_DIRS, in set_ftp_options_unlocked()
304 basesink->error = in set_ftp_options_unlocked()