Jean-Paul Saman [Fri, 17 Dec 2010 14:44:42 +0000 (15:44 +0100)]
stream_filter/httplive.c: do not seek in last 3 segments of HLS stream
Seeking into the last 3 segments keeps this condition in false state. In this
case it should turn into true because the last 3 segments have already been downloaded.
Or the condition should just not be applied.
Jean-Paul Saman [Fri, 17 Dec 2010 14:35:28 +0000 (15:35 +0100)]
stream_filter/httplive.c: Rename NextSegment() to GetSegment()
The function NextSegment() no longer resembles its name. It does not
get the next segment. It just gets the segment p_sys->segment from a
HLS stream (default p_sys->current).
Renamed the function GetSegment() to more resemble its usage.
The function hls_GetStreamSize() calculates the HLS stream size in bytes, based
upon information found in the .m3u8 file. The sum of each segment duration
(in seconds) times bandwith in bytes (hls->bandwidth/8).
Daniel Marth [Wed, 15 Dec 2010 18:19:49 +0000 (19:19 +0100)]
URL box is now focussed when "Open Network Stream" dialog box opens.
The URL box in the "Open Network Stream" dialog has now always focus
when opened and its content is automatically selected.
The patch is for ticket #4361 and was created as a part of a GCI-task
(http://www.google-melange.com/gci/task/show/google/gci2010/videolan/t129200306101).
Their default values are 0. The rawvideo decoder detects that there is no framerate
specified and resorts to its own default (fps 25.0). Through setting framerate and
framerate_base in the v4l2 es format the correct fps is communicated to vlc core.
Jean-Paul Saman [Fri, 3 Dec 2010 15:09:10 +0000 (16:09 +0100)]
access/v4l2: remove framerate reduction code.
The framerate reduction code is not needed. If the user did not set
the requested framerate, then the v4l2 module asks the driver for its
default value. When fps is specified by the user then that one is used.
Sure, naming a static library *_static.a is _VERY_ useful
(and helps the linker find it... not)
And of course, installing .svn on make install is clever
Erwan Tulou [Sat, 11 Dec 2010 10:56:14 +0000 (11:56 +0100)]
skins2: implement a new 'focus' attribute for text control
Up to now, text control could but be focusable, and this focus was used
to scroll text, should it be too long for full display.
From a user viewpoint, this behavior is often counterintuitive :
- Most of the time, the control is designed to fit the text anyway, and
scrolling is not expected.
- On the other hand, an underlying control may be used to move the window
(for instance, the title bar), and a text control is expected not to
interact in this endeavor. Same goes for popupmenu, that is expected
to work if one happens to right-click on a text control.
This patch adds a 'focus' attribute to the text control, and leave it to the
skins developper to decide which behavior is most desirable on a per-control
basis. focus still defaults to true to maintain skins current behavior.
Pierre Ynard [Fri, 10 Dec 2010 23:41:08 +0000 (00:41 +0100)]
httpd: fix parsing of request body
This caused genuine bugs like mangled bodies and corrupted requests
(usually leading to 501 errors), and possibly leaks of memory buffer
of the size of the Content-Length parameter. This is pretty bad since
crafted requests could easily exhaust the memory and/or trigger a crash.
Apart from the contents of the buffer of the involved request, there
doesn't seem to be any possible memory corruption.
On skins2(tested on Linux), open and close the preferences dialog leads to a
crash, because the whole qt4 thread terminates unexpectedly.
This is due to setQuitOnLastWindowClosed set to true. As a dialog provider,
qt4 doesn't run any windows, and therefore just closing the preferences
dialog box (via accept() or reject()) signals the qt4 thread to quit.
Pierre Ynard [Wed, 8 Dec 2010 18:03:58 +0000 (19:03 +0100)]
vod: default to new module
The new version, merged into the RTP stream output, is supposed to be
better than the old one, except for two dropped features:
- non-standard RAW/RAW/UDP and MP2T/H2221/UDP RTSP Transports, and
x-playNow RTSP header: the only vague specification of this that I
could find is this 10-year-old draft:
http://www-rn.informatik.uni-bremen.de/ietf/mmusic/47/id/draft-sheedy-mmusic-rtsp-ext-00.txt
They provide support for broken Amino STBs.
- client number limiting: not sure how pertinent that is and if it
would be the right way to implement/port it
If you think it's a problem to drop these features, speak now.
Ultimately the goal is to get rid of the old code (after the next major
release?)
Rémi Duraffort [Tue, 7 Dec 2010 13:04:47 +0000 (14:04 +0100)]
tsearch functions: check for the presence of search.h and replace tdestroy.
If search.h is present but not tdestroy: implement it based on others t* functions
If search.h and tdestroy are not present: implement every t* functions.