input_stream: added attribute "uri"
This commit is contained in:
@@ -801,7 +801,7 @@ input_curl_open(const char *url, GError **error_r)
|
||||
return NULL;
|
||||
|
||||
c = g_new0(struct input_curl, 1);
|
||||
input_stream_init(&c->base, &input_plugin_curl);
|
||||
input_stream_init(&c->base, &input_plugin_curl, url);
|
||||
|
||||
c->url = g_strdup(url);
|
||||
c->buffers = g_queue_new();
|
||||
|
@@ -84,7 +84,7 @@ input_file_open(const char *filename, GError **error_r)
|
||||
#endif
|
||||
|
||||
fis = g_new(struct file_input_stream, 1);
|
||||
input_stream_init(&fis->base, &input_plugin_file);
|
||||
input_stream_init(&fis->base, &input_plugin_file, filename);
|
||||
|
||||
fis->base.size = st.st_size;
|
||||
fis->base.seekable = true;
|
||||
|
@@ -56,7 +56,7 @@ input_mms_open(const char *url, GError **error_r)
|
||||
return NULL;
|
||||
|
||||
m = g_new(struct input_mms, 1);
|
||||
input_stream_init(&m->base, &input_plugin_mms);
|
||||
input_stream_init(&m->base, &input_plugin_mms, url);
|
||||
|
||||
m->mms = mmsx_connect(NULL, NULL, url, 128 * 1024);
|
||||
if (m->mms == NULL) {
|
||||
|
@@ -227,7 +227,7 @@ input_rewind_open(struct input_stream *is)
|
||||
return is;
|
||||
|
||||
c = g_new(struct input_rewind, 1);
|
||||
input_stream_init(&c->base, &rewind_input_plugin);
|
||||
input_stream_init(&c->base, &rewind_input_plugin, is->uri);
|
||||
c->tail = 0;
|
||||
c->input = is;
|
||||
|
||||
|
Reference in New Issue
Block a user