Allow file names to be used instead of URLs

This commit is contained in:
jp9000
2014-03-10 14:48:17 -07:00
parent 9a07f9b875
commit faabeff743
2 changed files with 4 additions and 3 deletions

View File

@@ -155,7 +155,7 @@
<item row="3" column="0">
<widget class="QLabel" name="label_18">
<property name="text">
<string>URL:</string>
<string>URL/Filename:</string>
</property>
</widget>
</item>

View File

@@ -813,11 +813,12 @@ void OBSBasic::on_streamButton_clicked()
int aBitrate = config_get_uint(basicConfig, "OutputTemp",
"ABitrate");
if (!url || !key)
if (!url)
return;
string fullURL = url;
fullURL = fullURL + "/" + key;
if (key && *key)
fullURL = fullURL + "/" + key;
obs_data_t data = obs_data_create();
obs_data_setstring(data, "filename", fullURL.c_str());