Rémi Denis-Courmont
a9c5a143c5
mms: avoid shadowing
9 years ago
Rémi Denis-Courmont
e4ba64d291
Remove access_t
9 years ago
Rémi Denis-Courmont
7971b19c59
mms: fix variable shadowing
9 years ago
Rémi Denis-Courmont
ac0c646ef0
mms: remove redundant casts
9 years ago
Rémi Denis-Courmont
8338cca86c
mmsh: use vlc_memstream, send request at once
9 years ago
Rémi Denis-Courmont
416dbc7309
mms: avoid vlc_url_t copy
Also remove duplicated error message (net_ConnectTCP prints a better
one).
9 years ago
Rémi Denis-Courmont
5ea9b09dc2
mmsh: initialize callbacks at the end of probing
This avoids setting wrong callbacks on failure.
9 years ago
Rémi Denis-Courmont
57b80197dd
Remove VLC_NORETURN, use standard syntax
Now this works not only on GCC.
9 years ago
Rémi Denis-Courmont
ac4744b72d
mms: use vlc_getProxyUrl()
10 years ago
Filip Roséen
ce4803809e
access/mms: narrow scope of iteration variables
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Rémi Denis-Courmont
f65e51fd64
mms: fix redirection handling
10 years ago
Rémi Denis-Courmont
d0b057e37a
mms: fix URl parsing ( fixes #17245 )
10 years ago
Rémi Denis-Courmont
7010722262
Zero is a legal file descriptor
10 years ago
Rémi Denis-Courmont
4489a0487e
access: rename access_t.psz_access to psz_name
10 years ago
Rémi Denis-Courmont
3e01621dc6
access: remove ACCESS controls, use STREAM
They have been identical for a while.
10 years ago
Rémi Denis-Courmont
da458bc49c
access: info.b_eof is always false during probe
10 years ago
Rémi Denis-Courmont
b75a89f081
mms: do not clobber access_t.info.b_eof during probe
10 years ago
Rémi Denis-Courmont
616a010c7f
access: reset EOF implicitly on succesful seek
10 years ago
Rémi Denis-Courmont
2381c5b860
access: add flag for EOF in pf_block prototype
pf_read() returns 0 to signify EOF, and -1 to signify no data.
pf_block() returns NULL either way. This flag is added for the
distinction.
10 years ago
Rémi Denis-Courmont
1be52a6842
access: access_t.psz_access is always set
It cannot be NULL or empty (the default is typically "file").
10 years ago
Filip Roséen
a2322f5445
MMS access: fixed include-guards
* renamed include-guards to fix issues with reserved identifiers
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Sebastian Ramacher
1b27ba8c02
Fix spelling of "response"
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Sebastian Ramacher
bab8d966c2
Fix spelling of "unknown"
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Francois Cartegnie
00b67afdef
access: mmstu: missing stream selection
10 years ago
Francois Cartegnie
4934cda0b4
access: mmstu: avoid overflow reading bitrate
10 years ago
Francois Cartegnie
c641af4608
access: mmstu: remove xmalloc and simplify
10 years ago
Francois Cartegnie
de4b543099
access: mmstu: drop xrealloc and simplify
10 years ago
Francois Cartegnie
377b93ef0b
access: mmstu: check command length before parsing
10 years ago
Francois Cartegnie
90ceeec675
access: mmstu: check for overflows (refs #16246 )
10 years ago
Francois Cartegnie
3524d9e534
access: mmstu: fix signedness
10 years ago
Francois Cartegnie
03f61eff6a
access: mmsu: remove xmalloc
10 years ago
Rémi Denis-Courmont
dcae6a70f1
mms: remove "http" shortcut
The HTTP module will redirect to MMS(H) when applicable, so handing
of the "http" scheem in the MMS module is no longer necessary.
Removing it saves a pointless connection attempt when HTTP fails for a
reason other than redirecting to MMS.
10 years ago
Rémi Denis-Courmont
6b2a31e5eb
mms: let owner handle HTTP redirection ( fixes #4631 )
10 years ago
Rémi Denis-Courmont
fccffe2f57
access: keep read offset in private data
11 years ago
Rémi Denis-Courmont
367b9a8abd
mmstu: return an error when file size is unknown
11 years ago
Rémi Denis-Courmont
d7a88fe038
url: remove vlc_UrlParse() option parameter
That parameter assumed that the query was part of the path. However it
is not, which leads to invalid host name, and eventually failure when
the path is missing. In practice, passing any value other than '?' as
separator would not work properly.
Remaining vlc_UrlParse() call sites without the option separator do not
support query at the protocol level anyway, so they are unaffected by the
change.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
11 years ago
Rémi Denis-Courmont
b092aef5ed
mmsh: fix URLs with query and no path
11 years ago
Rémi Denis-Courmont
b23f06cfa4
mmsh: fix memory leak
11 years ago
Rémi Denis-Courmont
9f873743ec
access: ACCESS_GET_SIZE return an error if size is unknown
11 years ago
Rémi Denis-Courmont
c34114a529
access: remove access_GetParentInput()
If there is a parent input, it cannot go away. There was no point in
reference counting.
11 years ago
Rémi Denis-Courmont
62d9e9b218
access: use vlc_killed()
11 years ago
Rémi Denis-Courmont
a3a6a95aad
net_Read: remove no longer used waitall parameter
It was always either true or unused. Note that when the buffer length
is 1 byte, waitall had no effects.
net_Read() and net_Write() are now symmetric.
11 years ago
Rémi Denis-Courmont
ba330e22f6
mms: stop polling every 500 milliseconds
11 years ago
Rémi Denis-Courmont
032657a62b
mms: remove redundant vlc_object_alive() calls
If the input thread is killed, the net_* functions will return an
error. It gets propagated all the way up to where vlc_object_alive()
was checked.
11 years ago
Rémi Denis-Courmont
7eb623f368
mms: remove bogus sleeps
The NetFillBuffer() functions already waits (somewhat more correctly)
for events. If the error is due to parsing error, waiting longer will
not fix it. If the error is due to network timeout, then
NetFillBuffer() is already fine.
11 years ago
Rémi Denis-Courmont
3aee65c9f7
Remove no longer used net_Write() argument
11 years ago
Rémi Denis-Courmont
c0cdab15a4
Remove no longer used net_Read() argument
11 years ago
Rémi Denis-Courmont
217fc59faa
Remove no longer used net_Printf() argument
11 years ago
Rémi Denis-Courmont
e46b0db280
Remove no longer used net_Gets() argument
11 years ago
Jean-Baptiste Kempf
fa8af20d0e
Move GUID_ helpers to vlc_codecs.h
11 years ago