reimar
fd6ce85192
Change type to uint8_t to avoid checks depending on char signedness.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30983 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-02 07:14:21 +00:00
reimar
006c481c1e
Sanitize ICY metadata a bit before printing it.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30980 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-31 19:42:15 +00:00
reimar
f76e141402
Make http_read_response fail if parsing the response failed.
...
Avoids possible crashes since other code assumes http_hdr->protocol
is a valid string if it succeeds.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30951 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-23 19:45:33 +00:00
diego
70c66c0476
Rename get_path.[ch] --> path.[ch].
...
These files now contain different functions related to path handling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30943 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-20 23:38:27 +00:00
Uoti Urpala
00323c06e2
Delete things related to old translation system
...
Remove the help/ subdirectory, configure code to create toplevel
help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
2010-03-10 03:47:14 +02:00
Uoti Urpala
0269d22d32
Merge svn changes up to r30876
2010-03-10 03:18:42 +02:00
Uoti Urpala
240550bbb9
Merge svn changes up to r30848
2010-03-10 03:00:14 +02:00
Uoti Urpala
4857965118
Merge svn changes up to r30815
2010-03-10 02:36:35 +02:00
Uoti Urpala
bc1d0ca37d
Merge svn changes up to r30798
2010-03-10 02:35:02 +02:00
Uoti Urpala
e74708f619
Merge svn changes up to r30748
2010-03-10 01:50:55 +02:00
Uoti Urpala
acdce0176a
Merge svn changes up to r30732
2010-03-10 01:25:15 +02:00
Uoti Urpala
194efde18f
Merge svn changes up to r30702
2010-03-10 01:08:50 +02:00
Uoti Urpala
0dce155dd3
Merge svn changes up to r30694
2010-03-10 01:01:15 +02:00
Uoti Urpala
327463be52
Merge svn changes up to r30672
2010-03-10 00:34:16 +02:00
Uoti Urpala
13221a7165
Merge svn changes up to r30663
...
Conflicts:
gui/cfg.c
libmpcodecs/vd_dmo.c
mplayer.c
2010-03-10 00:13:11 +02:00
Uoti Urpala
8e593f5a34
Merge svn changes up to r30529
2010-03-09 22:47:41 +02:00
Uoti Urpala
bc0f524909
Merge svn changes up to r30502
...
Conflicts:
libswscale/rgb2rgb.c
libswscale/rgb2rgb.h
libswscale/swscale.c
libvo/x11_common.c
2010-03-09 19:44:28 +02:00
Uoti Urpala
12d3caebc7
Merge svn changes up to r30475
2010-03-09 19:18:43 +02:00
Uoti Urpala
b34a88e4f4
translations: tweak cases that relied on concatenating adjacent strings
...
Tweak some code parts that used to rely on string literals from
translation macros being concatenated with other adjacent string
literals. Break up the resulting string into independently translated
parts, so that the existing translations for those parts can still be
used.
2010-03-07 21:35:23 +02:00
Uoti Urpala
5234c72e28
Restore collapsed whitespace in output messages
...
For some reason commit e306174952
, which
replaced translation macro names with the corresponding English
strings, also collapsed multiple consecutive space characters into
one. Change most of these back. In a couple of cases the amount of
whitespace is important for alignment, and for the rest it at least
keeps the strings closer to the existing translations.
2010-03-07 21:34:54 +02:00
komh
dd491c0d28
Define O_BINARY in stream/stream.h unless it is defined yet, and use it
...
in other places.
This removes platform specific checks and prevents repeated definitions
of O_BINARY.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30850 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 07:24:41 +00:00
komh
b10a6917f4
Define HAVE_SETMODE conditionally, and use it in stream/stream_file.c instead
...
of platform specific predefined macros.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30829 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-04 14:46:44 +00:00
komh
9beeeb1a9e
Add a VCD support for OS/2
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30819 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-03 14:32:29 +00:00
diego
c106fe7751
Drop support for old-style DVB code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30818 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-02 19:57:17 +00:00
reimar
be23797ee7
Remove unused and useless define.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30815 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 21:09:17 +00:00
reimar
3fa6717fb9
Fix memleak due to strdup'd filename not being freed.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30814 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 20:38:33 +00:00
reimar
cd4aa2aa30
Move functions into proper order to avoid extra declarations.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30813 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 20:33:47 +00:00
reimar
3ed38bacc4
Deduplicate code to set stream start_pos/end_pos.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30812 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 20:31:56 +00:00
reimar
4b7c452ce8
Set stream->pos correctly after seeking to a VCD title.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30811 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 20:22:18 +00:00
reimar
ea139fadc1
Ensure that cue_current_pos.track is not set to an invalid value after
...
attempting to seek to e.g. track 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30810 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 20:20:13 +00:00
reimar
20fcc5c6ef
Fix off-by-one error in chapter<->VCD track conversion.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30809 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 20:11:11 +00:00
reimar
4464a64ff7
Fix cue_read_toc_entry to also reject negative track numbers
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30808 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 20:07:37 +00:00
reimar
686565165f
Implement cue:// track switching via chapter forward/backward like for audio CDs.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30807 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 19:59:54 +00:00
reimar
592af7cd2c
Fix cue_vcd_get_track_end to not change the current position.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30806 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 19:57:42 +00:00
reimar
f2740450d3
Avoid fd_bin and fd_cue global variables.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30805 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 19:35:18 +00:00
reimar
3fc8335a86
Avoid a global variable and a strcpy.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30804 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 19:25:52 +00:00
reimar
2b91c7f044
Reindent.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30803 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 19:21:59 +00:00
reimar
2a6755e10d
Avoid code duplication and excessively deep nesting in cue_find_bin
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30802 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 19:20:32 +00:00
reimar
7d48f09b39
Use sizeof instead of hardcoded size.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30801 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-01 18:57:24 +00:00
reimar
b20e08ed94
Extend stream_read_line to support reading lines from UTF-16 encoded files
...
and use this to support reading UTF-16 encoded subtitle files in subreader.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30799 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-28 15:24:30 +00:00
reimar
c89169f7b5
Move stream_read_line implementation from stream.h to stream.c,
...
it is not speed critical and the function call overhead is not
relevant for its overall speed anyway.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30796 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-28 13:54:55 +00:00
reimar
d8c02c2dd2
Simplify handling of 0-termination in stream_read_line
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30795 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-28 12:54:12 +00:00
reimar
2c8d69f185
Remove useless cast.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30794 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-28 11:30:35 +00:00
komh
35fbd55c0f
Add cddb:// support for OS/2
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30788 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-28 03:26:18 +00:00
cehoyos
d59123f10d
Fix warning "missing braces around initializer".
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30782 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-27 23:23:34 +00:00
cehoyos
70b070baa2
Remove unused functions.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30781 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-27 23:14:44 +00:00
cehoyos
d1b81c6c1c
Fix cd_info_new() prototype.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30775 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-27 21:32:33 +00:00
reimar
827df51f1d
Threaded cache fixes: do not free the stream_t struct twice on windows
...
and make sure the cache thread quits also for streams without a control
function (e.g. http).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30773 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-27 21:02:44 +00:00
cehoyos
f47d90850d
Remove unused static function streaming_stop().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30765 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-27 20:13:21 +00:00
reimar
50fed7d1f9
Restructure #ifs to be clearer, also ensures that we return from the thread
...
proc instead of calling exit() on __MINGW32__.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30754 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-27 06:17:14 +00:00
diego
b63759b175
Do not cast the results of malloc/calloc/realloc.
...
These functions return void*, which is compatible with any pointer,
so there is no need for casts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30744 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-26 15:01:37 +00:00
reimar
72d18a204f
Mark stream open filename parameter as const, the filename string is not
...
modified by these functions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30739 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-25 22:47:04 +00:00
reimar
b99077dc4c
Remove unused function declaration.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30736 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-25 22:29:00 +00:00
reimar
e522920697
Make local-only cddb functions static.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30735 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-25 22:27:53 +00:00
reimar
bdf546c7c6
Remove declarations of functions now already declared in stream.h
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30733 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-25 22:19:32 +00:00
komh
16d8b08089
Define O_BINARY if it is undefined.
...
This removes a platform check for open().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30727 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-25 09:09:57 +00:00
diego
202fbbecdf
Mark vcd_get_track_end () and vcd_read_toc() as static.
...
They are only used within the respective files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30712 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-22 16:32:03 +00:00
diego
c8a6c6385b
Declare functions from network.c in network.h.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30698 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-22 13:50:48 +00:00
diego
638b2af889
Move struct streaming_control from network.h to stream.h, where it is used.
...
This will help in declaring some public functions where they really belong.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30697 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-22 13:27:58 +00:00
diego
3784d4f992
Remove commented-out declaration of non-existing function streaming_start.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30696 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-22 10:14:00 +00:00
diego
f9c2ab17af
Declare stream_fill_buffer() and stream_seek_long() unconditionally.
...
They are public functions that are unconditionally compiled, so they
should not be declared conditionally.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30691 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-21 23:30:34 +00:00
diego
326397d815
Add header for asf_mmst_streaming_start() instead of forward declaring it.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30690 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-21 23:26:16 +00:00
diego
49b8b80199
Add header for exported DVB-related functions.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30688 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-21 21:00:08 +00:00
diego
d86a237bdd
cosmetics: Move functions around to avoid forward declarations and #ifdefs.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30687 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-21 20:39:49 +00:00
diego
8ba6b4eaf9
cosmetics: Remove pointless empty lines at EOF.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30675 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 21:02:49 +00:00
diego
d393029ce2
cosmetics: K&R coding style, indent with 4 spaces, no tabs
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30671 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 19:57:47 +00:00
reimar
b1e549d7bc
Print response headers as debugging output also for HTTP seeks.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30670 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 19:23:14 +00:00
reimar
4b36e2fd18
10l, fix a close() that should be a closesocket()
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30669 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 19:22:23 +00:00
reimar
9554a844e9
Do not discard stream buffer on eof, instead reuse it to slightly improve
...
format autodetection with -nocache and non-seekable streams.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30668 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 18:53:07 +00:00
reimar
908f8c91e7
Replace misuse of stream_reset to set stream pos to 0 by more appropriate code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30667 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 18:39:26 +00:00
reimar
bb54613ac1
Fix mov reference files: for video/quicktime mime do not force a demuxer
...
but do autodetection. This tries lavf first but will also try native demuxer
for reference files where open fails for the lavf demuxer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30663 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 11:48:41 +00:00
reimar
74b5e8b68a
Make sure we do not try to use IPv6 with winsock2, we end up connecting
...
to random addresses, causing huge delays.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30661 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 11:13:01 +00:00
diego
ca81202840
Add dvd_parse_chapter_range() to stream_dvd.h instead of forward declaring it.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30657 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-19 19:38:53 +00:00
komh
c9cf9649cf
Add missing 'defined' for __bsdi__.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30655 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-19 13:40:04 +00:00
diego
d306b727b1
Remove pointless '#if 1' preprocessor directives.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30654 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-19 10:22:29 +00:00
komh
316e05b877
Replace platform preprocessor check by HAVE_DOS_PATHS.
...
This is both more elegant and more portable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30650 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-19 09:14:01 +00:00
komh
9216c6376a
Remove useless CONFIG_SETLOCALE
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30649 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-19 09:12:23 +00:00
diego
2c8f5fa622
stream: Mark functions not used outside of their files as static.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30599 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 16:32:38 +00:00
reimar
de41d79d2c
Prefer libavformat over our own mov demuxer also for video/quicktime
...
mime-type.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30517 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-05 17:35:48 +00:00
reimar
9d9b7a1e22
Reindent
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30499 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-03 22:33:35 +00:00
reimar
8613396aa0
Add support for FFmpeg's rtsp dummy URL-with-pseudo-demuxer scheme.
...
ffmpeg://rtsp://... will play a rtsp stream via FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30498 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-03 22:32:48 +00:00
reimar
d97ee3033d
Fix argument order for lseek, fixes cookie loading in Windows and in general
...
everywhere where SEEK_SET != 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30496 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-03 17:50:18 +00:00
diego
59e26907b6
Add license header to all files missing it in the stream subdirectory.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30468 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-30 22:26:47 +00:00
diego
12abc254d5
stream/rtp.h appears not to originate from dvbstream.
...
In any case it is completely trivial and non-copyrightable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30465 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-30 21:38:05 +00:00
Uoti Urpala
e28e4a1b15
Merge svn changes up to r30419
2010-01-25 15:59:53 +02:00
Uoti Urpala
4ebf007580
Merge svn changes up to r30375
2010-01-25 15:36:38 +02:00
Uoti Urpala
69fe2522f8
Merge svn changes up to r30301
2010-01-25 15:07:30 +02:00
reimar
4b2e107710
Fix ftp support to properly support large files > 2GB.
...
Patch by Yuriy Kaminskiy [yumkam mail ru]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30418 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-24 10:13:33 +00:00
reimar
570f1f5dec
Always call cache_uninit to immediately free everything cache-related if we
...
fail to enable the cache.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30404 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 12:27:13 +00:00
reimar
73dea88956
Call cache-uninit unconditionally, it should always be safe to call.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30403 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 12:21:07 +00:00
reimar
4e28b4bc9e
Change code to allow playing a stream even if enabling the cache failed
...
while still handling it when the user aborts the cache fill.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30402 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 12:13:28 +00:00
reimar
0e86058912
Make cache_init static, it is not used outside this file
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30401 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 11:51:13 +00:00
reimar
03af209bf7
Handle Content-Length also when Content-Type is not set.
...
Based on patch by Yuriy Kaminskiy [yumkam mail ru]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30399 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 11:14:18 +00:00
reimar
e177aedfc1
Use atoll to parse Content-Length to support http for files > 2GB.
...
Patch by Yuriy Kaminskiy [yumkam mail ru].
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30398 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 11:08:45 +00:00
reimar
567a8d69a4
Add an exit() to silence a gcc warning and ensure forked code will never
...
leave the cache-loop function.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30397 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 11:03:10 +00:00
reimar
a2d8222f3d
100l, shouldn't write to memory after freeing it.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30396 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 11:00:13 +00:00
reimar
9869be806b
Reindent.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30395 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 10:54:03 +00:00
reimar
3fae575483
Zero freed pointers.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30394 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 10:53:28 +00:00
reimar
7afaecc111
Check for fork failing and make sure cache_uninit always frees the cache data
...
even if fork failed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30393 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-23 10:50:50 +00:00
Uoti Urpala
a0f08fbebb
stream: improve EOF handling in seeks
...
Reset stream 'eof' flag when a seek succeeds, and allow seeking to a
position at or past EOF (in the sense that the seek succeeds and
stream_tell() then returns that position).
This fixes at least some demuxer problems where an attempt to read
the index from the end of an incomplete file would set the 'eof' flag
and cause subsequent reads to fail, even if failure to read the index
would otherwise be nonfatal and demuxing could continue after seeking
back.
Partially based on a patch from Laurent <laurent.aml@gmail.com>.
2010-01-18 14:38:56 +02:00
reimar
77af8d0859
Add hack to fix tvi_dshow compilation with 64-bit MinGW
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30347 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 13:18:59 +00:00
reimar
abf7e21e79
Change GUID declarations in tvi_dshow so they are not exported and thus
...
will not cause clashes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30342 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 11:41:54 +00:00
reimar
33bc71f10d
Add support for distinguishing between little- and big-endian SPDIF AC3
...
and converting between both.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30283 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-11 20:27:52 +00:00
Uoti Urpala
819b8f08a2
Merge svn changes up to r30236
2010-01-08 02:44:37 +02:00
Uoti Urpala
852570d342
Merge svn changes up to r30216
2010-01-08 02:39:39 +02:00
Uoti Urpala
17eb7f2c4b
Merge svn changes up to r30195
2010-01-08 02:06:42 +02:00
Uoti Urpala
d157b2a8ce
Merge svn changes up to r30173
2010-01-08 01:17:56 +02:00
Uoti Urpala
231b33a02f
Merge svn changes up to r30165
2010-01-08 01:05:30 +02:00
reimar
78267a4d21
Support rtmp:// URLs directly instead of requiring ffmpeg://rtmp://
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30232 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-06 16:12:58 +00:00
reimar
abb06b3f11
Simplify ffmpeg stream support, we (so far) do not need any special option parsing.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30231 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-06 16:11:29 +00:00
diego
00ad5d3fed
Add a few missing header #includes and #defines.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30207 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-04 18:58:35 +00:00
diego
348a61a71f
Disambiguate HEADER_SIZE definition in stream/librtsp and stream/realrtsp.
...
This fixes the warning:
In file included from stream/realrtsp/real.c:35:
stream/realrtsp/real.h:36:1: warning: "HEADER_SIZE" redefined
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30194 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-04 09:48:14 +00:00
reimar
12760fc513
Several hacks to fix compilation of tvi_dshow on MinGW64.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30169 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-02 17:41:11 +00:00
reimar
8fb7d45abd
Make code slightly more readable.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30148 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-31 16:47:53 +00:00
reimar
b78313acd8
Fix crash if http reply contains neither "Accept-Ranges" nor "Server" fields.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30147 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-31 16:46:44 +00:00
reimar
c97d19eb49
Add a hack for broken youtube servers not returning Accept-Ranges.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30145 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-30 20:50:03 +00:00
Uoti Urpala
efcc9ad712
Merge svn changes up to r30055
2009-12-18 18:54:42 +02:00
Uoti Urpala
1598302be6
Fix printf format strings with invalid '%lf' conversion
...
Some code used an invalid '%lf' conversion specification for double
arguments. Maybe they were written that way due to confusion with
scanf where doubles are indicated by '%lf'; however it is not a valid
printf format specifier. Change those cases to use '%f'.
2009-12-15 15:27:30 +02:00
reimar
e58e467c56
100l, fix check for V4L2 capture capability flag.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29991 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-11 21:33:57 +00:00
Uoti Urpala
ed333bb31d
Merge svn changes up to r29971
2009-11-29 06:11:02 +02:00
compn
b3eaf99833
mime type [video/x-ms-wmv] is not an ASF redirector.
...
patch by KO Myung-Hun komh!chollian!net
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29965 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-26 17:57:33 +00:00
Uoti Urpala
34c8b502e9
stream_ffmpeg: Fix reads near EOF
...
stream_ffmpeg used libavformat's url_read_complete() to read data.
However that function returns failure if it did not manage to read the
_full_ amount of data asked for, while the behavior we want is to
return any positive amount of data there was before end of file. This
caused attempts to read the last bytes in a file to fail. Fix by using
url_read() instead of url_read_complete(); even if some reads before
EOF return less than the full amount that should not be a problem.
2009-11-23 03:47:34 +02:00
Uoti Urpala
5995bc175a
Merge svn changes up to r29962
2009-11-23 01:56:21 +02:00
reimar
af2988cbce
Finally rename the STREAM_SEEK define to MP_STREAM_SEEK, there are just too many
...
name clashes, in particular with Windows headers (which define STREAM_SEEK as an enum type).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29962 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-22 15:18:21 +00:00
cehoyos
e775bdd70d
10l to Reimar: Fix typo.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29931 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-18 09:13:09 +00:00
reimar
e02a2e7f08
Deobfuscate the special hack to disable cache for live555.
...
Cache can not be used for it, since it does not provide any
data stream, the data is provided to the demuxer "behind
MPlayer's back".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29930 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-17 19:23:55 +00:00
reimar
a81e043f98
Merge malloc+memset -> calloc
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29929 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-17 19:14:42 +00:00
reimar
450d40d443
Fall back to read-based seeking for ffmpeg:// URLs when is_streamed is set
...
(i.e. it is not possible to use url_fseek).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29928 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-17 18:30:33 +00:00
reimar
dc19e32d67
Enable the read-based forward seek fallback also when CONFIG_NETWORK is
...
enabled.
Enabling network support should not have side-effects on code not really
related to networking.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29926 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-17 18:08:18 +00:00
reimar
00ef6412f4
Use fill_buffer if available also for STREAMTYPE_STREAM
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29925 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-17 18:05:54 +00:00
reimar
5830140582
Add preliminary support for streaming via FFmpeg's URProtocol functions.
...
Basic playback tested for file and http protocols.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29923 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-17 16:09:17 +00:00
Uoti Urpala
287b62163e
Merge svn changes up to r29912
2009-11-16 07:01:46 +02:00
reimar
7694e9074d
Move headers related to setting dvd speed to dvd_common.
...
This makes -dvd-speed work again.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29894 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-11 09:28:21 +00:00
reimar
2bf260398b
Set the EOF flag when dvdnav reached the end of the requested title.
...
Otherwise it would just hang, either at the menu or trying to play the
last played frame as a still frame.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29893 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-11 09:09:08 +00:00
reimar
0d40667c8c
Move dvd_speed and dvd_set_speed to dvd_common and implement -dvd-speed
...
support for dvdnav.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29890 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 23:20:05 +00:00
reimar
36ec821836
Move arrays used by both dvd and dvdnav to dvd_common.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29889 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 23:15:48 +00:00
reimar
80217b4240
Remove unused extern declarations.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29888 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 23:12:01 +00:00
reimar
8f164e07a0
Share dvd_device extern declaration between dvd and dvdnav.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29887 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 23:10:57 +00:00
reimar
6e8f1e844f
Remove an unused variable.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29886 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 23:03:52 +00:00
reimar
bd82936f63
Set demuxer->teletext to NULL when closing the TV interface,
...
since analog teletext can not (yet) work without the TV interface.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29873 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 11:24:29 +00:00
reimar
87a4e870b7
The code for the non-networking case is the same whether networking
...
support was enabled or no, so avoid duplicating it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29861 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-09 14:12:14 +00:00
reimar
0d782226c1
Factor out triplicated break statement.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29860 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-09 14:08:35 +00:00
reimar
a144a22453
Remove unused mp_dvdnav_aid_from_audio_num function
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29859 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-09 10:29:15 +00:00
reimar
2dfd5e5f53
Fixup the dvdnav <-> sid mapping, dvdnav_spu_stream_to_lang and
...
dvdnav_get_spu_logical_stream both take the same numbering (i.e.
not the ids used in the MPEG-TS).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29858 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-09 10:27:48 +00:00
cehoyos
2a5611473c
Remove CONFIG_TV_TELETEXT.
...
DVB teletext support is nearly finished, it will be possible to read
teletext from file, it will not be depending on reception any more.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29851 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-07 16:40:42 +00:00
cehoyos
423c415534
Separate teletext from tv support.
...
Path by Francesco Lavra, francescolavra interfree it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29848 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-07 12:31:05 +00:00
reimar
ef479d9d01
dvdnav: print ID_SID_..._LANG, just like dvd://
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29832 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-05 21:29:14 +00:00
reimar
c76ea256de
Cosmetics: indentation, merge two consecutive ifs.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29831 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-05 21:27:25 +00:00
reimar
503fe2eb9c
Make dvdnav also print info about audio streams with unknown language, just like dvd://
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29830 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-05 21:26:23 +00:00
reimar
b00d649d98
Make the dvdnav stream language information output more similar to the dvd one.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29829 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-05 21:22:38 +00:00