Commit Graph

30765 Commits

Author SHA1 Message Date
diego f15694a779 Revert marking seemingly unused RealAudio/RealVideo-related functions as static.
The functions are required to load binary Real codecs, so they need to be kept.
Group all functions together in ad_realaud.c because all the functions are used
to load audio binaries and only some to load video binaries.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30606 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-17 19:21:28 +00:00
reimar cdd0ab0da9 Mark ALS fourcc as internal only.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30605 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-17 07:06:12 +00:00
reimar 20b2f493bb Support FFmpeg's ALS decoder.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30604 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 21:54:50 +00:00
reimar 50973f0044 Move struct typedef pixbuf into the only .c file where it is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30603 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 19:39:30 +00:00
reimar 0dc08a811d Remove useless malloc casts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30602 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 19:36:36 +00:00
reimar 091e2a4313 Remove unused XPM-loading function pixbuf_load_xpm() from spuenc.c.
Remove unused function pixbuf_delete() from spuenc.[ch].


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30601 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 19:34:41 +00:00
reimar ff8c044318 Fix win32 gui compilation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30600 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 19:07:06 +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
diego 6833ea6ab2 libvo: Mark functions not used outside of their files as static.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30598 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 16:22:17 +00:00
diego a6207aaa68 libmpcodecs: Mark functions not used outside of their files as static.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30597 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 16:16:42 +00:00
diego 465f535c51 #include corresponding .h files in .c files.
This ensures that function declarations in both files always match.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30596 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 15:03:03 +00:00
diego 3c514ea708 Add header for init_global_rawdv_decoder() instead of forward declaring it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30595 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 14:52:59 +00:00
diego caa956090a Add header file for mplayer_audio_read() instead of forward declaring it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30594 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 13:16:17 +00:00
diego a450db36fd Add header file for sis_init_video_bridge() instead of forward declaring it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30593 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 13:10:24 +00:00
diego aae2efd679 VIDIX: #include drivers.h in drivers.c.
This ensures that function declarations in both files always match.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30592 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 13:07:00 +00:00
diego cc7fdaf5c5 VIDIX: Mark some functions not used outside their files as static.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30591 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 13:04:00 +00:00
diego cf3100872d Remove pointless header #includes; #include only required header stdint.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30590 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-16 11:31:29 +00:00
reimar 676a0c121e Remove unused variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30589 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 18:50:32 +00:00
reimar 51cc80d2dd Use memset to initialize huge arrays.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30588 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 18:38:02 +00:00
reimar 687744dfed Remove pointless explicit member initialization to 0 when the struct
is already zeroed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30587 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 18:32:31 +00:00
reimar af356b5d15 Use calloc instead of malloc+memset
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30586 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 18:30:32 +00:00
reimar f452c1262f Add support for decoding 4:2:2 and 4:4:4 Theora files.
Patch by Giorgio Vazzana [mywing81 gmail com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30585 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 15:39:52 +00:00
reimar c2c64b459f Make len unsigned. More correct anyway and avoids sign extension to 64 bit
for the 64+32 bit addition.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30584 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 15:17:24 +00:00
reimar b2b8d0e1f2 Simplify and slightly speed up avi_stream_id function.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30583 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 15:09:21 +00:00
diego 782c37899b Declare vf_menu_pause_update in libmenu/menu.h.
This avoids a forward declaration in mplayer.c.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30582 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 14:54:48 +00:00
diego 4b6ce33628 Directly mark structs as WINE_PACKED where all members are marked as packed.
This fixes a ton of gcc warnings about ignored packed attributes.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30581 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 14:49:44 +00:00
reimar 5522068821 Simplify.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30580 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 14:48:54 +00:00
diego 2e98215f13 Move movie_aspect extern declaration to libmpcodecs/vd.h.
This is the appropriate place for the declaration; the variable is
declared in libmpcodecs/vd.c.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30579 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 14:47:22 +00:00
diego 6448809568 Move GUI-related extern declarations to a GUI header file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30578 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 14:33:16 +00:00
diego dc32369107 GUI: Mark functions that are not used outside their files as static.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30577 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 14:02:09 +00:00
reimar 56e0f7fe9e Avoid using sscanf for basic parsing, it is horribly slow.
Now uses strncmp as a first step, which is 40 times faster.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30576 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 13:57:30 +00:00
diego 68219deebf Avoid forward declarations for import_initial_playtree_into_gui() and
import_playtree_playlist_into_gui; declare them in interface.h instead.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30575 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 13:49:31 +00:00
diego 2e816f7a17 Add xscreensaver_heartbeat() declaration to x11_common.h.
This avoids a forward declaration in mplayer.c.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30574 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 12:57:18 +00:00
diego 93e9e860d7 Rename gui/mplayer/gtk/menu.[ch] --> gui/mplayer/gtk/gtkmenu.[ch].
This avoids confusion with headers of the same name in other places.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30573 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 12:55:02 +00:00
diego 89dfec20a2 Declare mp_input_register_options() in input/input.h.
This also avoids a forward declaration in mplayer.c.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30572 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 12:39:58 +00:00
diego 7078ce833e GUI: #include associated .h files in .c files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30571 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 12:31:24 +00:00
reimar 2347661b0e Check that fontconfig version is at least 2.4.2, which is required for the
included libass.
A more fine-grained check would be possible to e.g. allow older versions
if internal libass is disabled, but seems like overkill.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30570 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:57:37 +00:00
reimar 318156ae6b Reindent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30569 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:19:52 +00:00
reimar 270ebbb913 Just use goto instead of reimplementing it badly with a do { } while (0) and
break.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30568 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:17:12 +00:00
reimar f2488e8537 Change aspect calculation code to switch to floating point earlier so integer
overflows are not possible.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30567 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:13:20 +00:00
diego 4e9a7e9a68 QuickTime X supports SAR in H.264.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30566 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:13:01 +00:00
reimar cfcbf57e54 Return NULL instead of 0 for function returning a pointer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30565 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:11:49 +00:00
diego 9fefbedb17 Mark uninit() as static; it is only used within the file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30564 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:09:58 +00:00
reimar fdb18951f1 Remove useless casts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30563 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:09:24 +00:00
reimar 24dadf50a3 Remove useless code, QUERY_FORMAT already ensures the requested format is supported.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30562 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:06:04 +00:00
reimar 9c5a56a1c4 Make vd_functions_t describing codecs const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30561 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:04:14 +00:00
diego 8a67379319 Rename exit_reason_t enum to exit_reason and do not typedef it.
The _t namespace is reserved for POSIX; the typedef is pointless obfuscation.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30560 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:02:05 +00:00
reimar 8c21a0fd73 Make vd_info_t const for pointer in vd_functions, avoids some warnings about
initialization discarding the const.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30559 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 10:58:01 +00:00
diego 11b55ec7a8 Fix exit_player() usage throughout the codebase.
exit_player() was declared with differing parameter types in mplayer.c and
mplayer.h. Make the declaration in the .h file match the one in the .c file
and adjust all usages of exit_player() throughout the codebase. Also move
the exit_player() declaration into mp_core.h next to exit_player_with_rc().


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30558 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 10:53:20 +00:00
reimar 3e5d40ff2e Remove excessive ()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30557 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 09:19:30 +00:00