Commit e3f4c7b9 authored by Thomas Jansen's avatar Thomas Jansen Committed by Max Kellermann

input/rewind: enable for MMS

parent 54294366
...@@ -4,6 +4,7 @@ ver 0.15.13 (2010/??/??) ...@@ -4,6 +4,7 @@ ver 0.15.13 (2010/??/??)
- httpd: fix random data in stream title - httpd: fix random data in stream title
* input: * input:
- rewind: update MIME not only once - rewind: update MIME not only once
- rewind: enable for MMS
ver 0.15.12 (2010/07/20) ver 0.15.12 (2010/07/20)
......
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
#include "config.h" #include "config.h"
#include "input/rewind_input_plugin.h" #include "input/rewind_input_plugin.h"
#include "input/curl_input_plugin.h" #include "input/curl_input_plugin.h"
#ifdef ENABLE_MMS
#include "input/mms_input_plugin.h"
#endif
#include "input_plugin.h" #include "input_plugin.h"
#include "tag.h" #include "tag.h"
...@@ -220,7 +223,11 @@ input_rewind_open(struct input_stream *is) ...@@ -220,7 +223,11 @@ input_rewind_open(struct input_stream *is)
assert(is != NULL); assert(is != NULL);
assert(is->offset == 0); assert(is->offset == 0);
if (is->plugin != &input_plugin_curl) if (is->plugin != &input_plugin_curl
#ifdef ENABLE_MMS
&& is->plugin != &input_plugin_mms
#endif
)
/* due to limitations in the input_plugin API, we only /* due to limitations in the input_plugin API, we only
(explicitly) support the CURL input plugin */ (explicitly) support the CURL input plugin */
return; return;
...@@ -230,7 +237,8 @@ input_rewind_open(struct input_stream *is) ...@@ -230,7 +237,8 @@ input_rewind_open(struct input_stream *is)
/* move the CURL input stream to c->input */ /* move the CURL input stream to c->input */
c->input = *is; c->input = *is;
input_curl_reinit(&c->input); if (is->plugin == &input_plugin_curl)
input_curl_reinit(&c->input);
/* convert the existing input_stream pointer to a "rewind" /* convert the existing input_stream pointer to a "rewind"
input stream */ input stream */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment