Răsfoiți Sursa

obs-outputs: Remove trailing/leading whitespace from key/url

jp9000 9 ani în urmă
părinte
comite
2f2cb138bb
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      plugins/obs-outputs/rtmp-stream.c

+ 2 - 0
plugins/obs-outputs/rtmp-stream.c

@@ -648,6 +648,8 @@ static bool init_connect(struct rtmp_stream *stream)
 	dstr_copy(&stream->key,      obs_service_get_key(service));
 	dstr_copy(&stream->username, obs_service_get_username(service));
 	dstr_copy(&stream->password, obs_service_get_password(service));
+	dstr_depad(&stream->path);
+	dstr_depad(&stream->key);
 	stream->drop_threshold_usec =
 		(int64_t)obs_data_get_int(settings, OPT_DROP_THRESHOLD) * 1000;
 	stream->max_shutdown_time_sec =