Ilkka Ollakka [Mon, 1 Apr 2013 10:41:31 +0000 (13:41 +0300)]
avcodec: cleanup encodeAudio
Handle better cases when we don't have input frame size
same as encoder input frame size. Also gather input samples
untill we get full frame fillet and not just next block.
Set length based on used samples and not frame_size
Also try to make memory calculations cleaner so they don't
overshoot and write stuff all over.
Forcefully resizing only makes sense when layouts were designed to be similar
in size in the first place. Furthermore, it cuts off a larger layout if a
smaller one is first defined when loading a skin.
Ideally, the skins2 dtd should be extended for skins developers to explicitly
express whether two layouts are tightly-coupled or not, i.e should always be
kept the same size whatever the subsequent resizing performed by the user.
Erwan Tulou [Sun, 31 Mar 2013 23:54:55 +0000 (01:54 +0200)]
skins2: add a function that differentiates dependent and independent layouts.
In skins2, a window can have multiple layouts with two different goals.
First goal, layouts have the same original size and only differ in the
presentation (different color, ...). If the active layout gets resized,
the user expects the related inactive layouts with the same size to
automatically resize, should they become active.
Second goal, layouts are different in size, e.g a reduced layout and an
expanded layout. In this case, resizing the active layout doesn't mean
resizing the other inactive layouts, since they were not meant to be
similar in size in the first place.
This patch creates a function that will be used to differentiate these
two different use of layouts.
Erwan Tulou [Sat, 30 Mar 2013 18:38:32 +0000 (19:38 +0100)]
skins2: improve $N text variable
Instead of hardcoding what we think the name of the current item is, make it
configurable via the --input-title-format parameter.
This change makes skins2 more consistent with qt4 that already uses this
means to set the title of the main window.
Default display will now be "artist + title" instead of just "title".
Users who would still prefer the previous behaviour can get it with
--input-title-format '$t'
This fixes a request described at http://forum.videolan.org/viewtopic.php?f=15&t=108976
Zoran Turalija [Sat, 30 Mar 2013 07:52:18 +0000 (08:52 +0100)]
dtv: More detailed DiSEqC error messages.
Error messages were reused from time when there was no uncommitted
switch support. Now we have support for this feature, and we can
supply better error messages, because we know in more details what
has happened at times when error occured.
Zoran Turalija [Thu, 28 Mar 2013 13:46:05 +0000 (14:46 +0100)]
Add hotkeys to cycle through previous/next program SIDs.
Change "cycle through program SIDs" to support cycle both ways (prev/next).
With this commit, it is possible e.g. to quickly change between neighbor
program SIDs back and forth in multi-program stream like DVB streams using
default x/Shift+x keys.
Janne Grunau [Wed, 27 Mar 2013 16:05:44 +0000 (17:05 +0100)]
avcodec: hw accel with frame multithreading works since libavcodec 55.01.00
This is mostly useful if the hw accelerator cannot handle the stream.
The software decoder fallback will then use frame multithreading if it
supports it.
Default size was wrong.
Text was really hard to real in that tiny box: lots of line breaks and
scrollbars. Text should fit in a single viewport.
Max size has been increased to 500, screen assumed at least 640px wide.
Zoran Turalija [Mon, 25 Mar 2013 20:01:39 +0000 (21:01 +0100)]
avcodec: Correct macro definition in LIBAVUTIL_VERSION_CHECK.
Use parenthesis around the expression returned in LIBAVUTIL_VERSION_CHECK,
to avoid problems that can arise in future with some ways macro may be used.
Same as what has been done in LIBAVCODEC_VERSION_CHECK.
Zoran Turalija [Mon, 25 Mar 2013 09:40:01 +0000 (10:40 +0100)]
avcodec: Compile again with FFmpeg libavcodec library.
Make fails when using FFmpeg libavcodec version newer than checked by
LIBAVCODEC_VERSION_CHECK, because of redeclaration of many enumerators,
that are unnecessary with newer version of libavcodec library.
It is due to missing parenthesis in macro definition that are making
it wrong.
Edward Wang [Thu, 14 Mar 2013 15:32:24 +0000 (15:32 +0000)]
Correct widespread misuse of the word 'subtitle'
Subtitle is the adjective describing what kind of text. So "subtitle text" is an adjective phrase describing what kind of encoding.
For example, we don't listen to "audios tracks", program "videos codecs", or open "playlists files". Therefore, use the correct form of the word subtitle for the context.
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>