Skip to content

Commit d9d3a63

Browse files
committed
fix
1 parent e04dfea commit d9d3a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ int Server::url_handler (void *cls,
192192
MHD_add_response_header(response, "Content-Type", "multipart/x-mixed-replace;boundary=CCA_LV_FRAME");
193193
} else if(urlString.find("preview") != std::string::npos) {
194194
const char *data;
195+
195196
int size = s.cc->preview(&data);
196197
response = MHD_create_response_from_buffer(size, (void *)data, MHD_RESPMEM_MUST_COPY);
197198
MHD_add_response_header(response, "Content-Type", "image/jpeg");
@@ -255,7 +256,6 @@ ssize_t Server::handle_mjpeg(void *cls, uint64_t pos, char *buf, size_t max){
255256

256257
if(available < max) {
257258
const char *data;
258-
s->cc->set_settings_value("autofocusdrive", "1");
259259
int size = s->cc->preview(&data);
260260
if(size < GP_OK)
261261
return MHD_CONTENT_READER_END_OF_STREAM;

0 commit comments

Comments
 (0)