projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7850079
)
Make Input honor should_stop even when it is not connected to an encoder.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Sat, 6 Apr 2013 22:51:43 +0000
(
00:51
+0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Sat, 6 Apr 2013 22:51:43 +0000
(
00:51
+0200)
input.cpp
patch
|
blob
|
history
diff --git
a/input.cpp
b/input.cpp
index
fd71d40
..
a1b71d6
100644
(file)
--- a/
input.cpp
+++ b/
input.cpp
@@
-62,7
+62,7
@@
void Input::do_work()
{
CURL *curl = curl_easy_init();
-
for ( ;;
) {
+
while (!should_stop
) {
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &Input::curl_callback_thunk);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, this);