Commit Graph

461 Commits

Author SHA1 Message Date
cehoyos 4be2fcb25e Fix possible null-pointer-dereference in stream_fill_buffer().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24991 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-08 23:07:19 +00:00
voroshil 0290988bbd Fix memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24972 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-05 16:34:15 +00:00
voroshil f057394851 Fix segmentation fault after audio initialization failure in tv driver.
Error was caused by double call to driver's uninit() routine.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24971 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-05 16:33:29 +00:00
nicodvb 3d1e0439ea removed unused variables and parameters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24903 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-30 22:30:15 +00:00
diego 94e3b4a0f7 Comment out unused variable, fixes the warning:
dvb_tune.c:43: warning: 'dvb_secdev' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24889 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-30 08:44:15 +00:00
diego 4de99aade1 Remove unused functions, fixes the warnings:
pnm.c:853: warning: 'pnm_peek_header' defined but not used
pnm.c:859: warning: 'pnm_close' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24888 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-30 08:14:41 +00:00
zuxy 242c5fc73c Make functions static if they aren't referenced externally.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24869 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-27 17:46:09 +00:00
reimar 2d84ff3489 Remove assert. Not only are they no help at all and proper checks should
be added if desired, also assert.h is not included so compilation may fail.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24859 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-27 06:47:35 +00:00
voroshil 31d2ed32a6 Don't wait for filling entire audio ringbuffer at each call to grab_audio_frame.
Fixes 2 minutes delay before starting playback and audio clicks in sound
(at least for my SAA7134 based card while capturing radio through saa7134-alsa
module).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24849 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-25 15:04:33 +00:00
voroshil f7e755eb55 Add missing call to audio_in_start_capture.
Fixes capturing sound from ALSA devices
(repeated xrun errors, buffer underruns and son on).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24848 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-25 14:57:17 +00:00
ivo def691696e add missing include (errno.h). fix compilation on openbsd
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24847 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-24 12:07:29 +00:00
voroshil 803d454576 Simplify handling SET_NORM for V4l1: replace several if-else-if and switch
statements with one lookup table;



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24817 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-20 11:46:15 +00:00
voroshil 6114954b08 czech/slovak character set fixes:
plain latin characters instead of native were wrongly used in several places
of charset table.

patch from Oldrich Jedlicka oldium dot pro at seznam dot cz




git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24816 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-20 05:02:44 +00:00
voroshil 39e5906704 After receiving EINTR 'read' syscall should be restarted.
Fixes receiving teletext on some systems.

Modified patch from Oldrich Jedlicka oldium dot pro at aenam dot cz



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24791 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-16 01:53:34 +00:00
voroshil e3212dafd5 Disable channel scanner when no tuner is present.
TV channel scanner is useless without tuner and causes
mplayer crash due to uninitialized chanlist_s variable
(e.g when dummy driver and tvscan are used together).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24790 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-15 17:46:17 +00:00
voroshil dde6ba8352 Fix mplayer segfault when v4l driver initialization (at setting norm
stage) failed.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24787 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 17:56:29 +00:00
voroshil 2585d1e148 #ifdef's in tv.c and tv.h becomes more and more hard to maintain.
I've decided to remove all of them and control options only through cfg-common.h



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24786 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 16:44:32 +00:00
voroshil a15457b8d7 Remove unnecessary curly braces.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24782 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 07:20:24 +00:00
voroshil f9a227eb94 8 bytes buffer is not enough for at least SECAM-DK.
Increase it to 20.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24781 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 06:28:51 +00:00
voroshil 19d217a981 Replace duplicated code with call to routine
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24780 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 05:56:17 +00:00
voroshil a776f3be21 10l: routine sets norm from parameter, but prints value of tv norm option
(which can be not equal to parameter).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24779 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 05:45:20 +00:00
voroshil 40fdbecb5a (cosmetics) indentation fix of my previous commit and small readability
improvement.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24778 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 05:18:32 +00:00
voroshil 4800f1bf62 Remove driver-dependent #ifdef from norm_from_string routine.
It will use TVI_CONTROL_SPC_GET_NORMID if supported by driver and
fallback to hardcoded norms otherwise.
This will not change current behaviour because hardcoded norms were used
with drivers which do not support above ioctl.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24777 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 05:15:51 +00:00
voroshil 6ec3aa1159 (cosmetics) remove trailing whitespace
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24776 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-14 04:56:01 +00:00
iive bb18bd5088 10l fix compilation with v4l2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24775 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-13 19:57:51 +00:00
voroshil 45287b2c2b DirectShow based tv:// driver for win32
Teletext is also supported (but 625 system parameters are hardcoded).
pthreads is required for teletext.

Code is still experimental.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24772 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-13 17:14:39 +00:00
nicodvb 29979efc60 removed useless inclusion of error.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24767 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-13 09:40:32 +00:00
reimar bc41cde0b7 Make sure forked code does not try to display a GTK message box (and thus crashes)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24717 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-07 08:41:31 +00:00
diego c8ae1836e6 cosmetics: misc typo fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24615 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-25 16:34:23 +00:00
voroshil 2312ca9e70 Fix compilation with enabled radio capture and disabled OSS audio.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24603 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-24 16:48:08 +00:00
lu_zero 0ff4b3fd9f libnemesi support, yet another rtsp/rtp library...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24584 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-19 21:38:22 +00:00
reimar 946272e8b4 (Re)move idiotic checks, ret can't be < 0 or > 0 if the loop condition
is that it is == 0!


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24579 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-19 13:01:08 +00:00
reimar 79918649e2 Fix a few typos
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24578 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-19 12:54:10 +00:00
voroshil fdb78c2bea Implement setting gain control for video devices (usually webcams)
in v4l2 tv:// driver.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24573 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-18 16:28:39 +00:00
nicodvb dca2352543 removed unused members from dvdnav_priv_t
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24513 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-15 09:57:00 +00:00
nicodvb 25f19895b5 Removed dead code related to stills.
patch by Attila Ötvös (oattila chellu hu)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24512 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-15 09:13:24 +00:00
voroshil 7d44f8c906 Fix missing reset/initialization (with tv parameters) of
vbi subsystem after tv initialization.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24450 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 17:13:27 +00:00
diego 177e5c452a Add missing #include to fix compilation.
patch by Bernd Ernesti, mplayer-dev-eng lists.veego de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24431 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-12 08:49:25 +00:00
voroshil dcc2e2e5ea Implementation of tv:// driver autodetection.
If user did not specify driver directly, all available
drivers will be probed (in order: v4l2,v4l1,bsdbt848,dummy).
In most cases first probed driver will be successfully autodetected
and used.
Autodetection will be disabled if user specified driver directly (in
command line or config).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24423 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-10 17:09:35 +00:00
voroshil 0efbf8149c Fix for:
tvi_v4l2.c: In function 'start':
tvi_v4l2.c:1453: warning: comparison between signed and unsigned


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24366 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-08 10:15:08 +00:00
voroshil bfc18929a7 More accurate calculating of teletext
page update intervals



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24365 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-08 10:04:08 +00:00
voroshil 641a7ddabd Implement boxes for subtitle teletext pages.
Text is shown in opaque boxes inside transparent
teletext page.




git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24364 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-08 09:48:43 +00:00
voroshil 67276cc8cd Decrease teletext page rendering frequency from 1/frame to about 4/sec.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24362 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-08 03:06:23 +00:00
voroshil a027248c5f Fix for:
tvi_vbi.c:1392: warning: 'decode_raw_line_sine' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24336 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-03 14:21:53 +00:00
voroshil dfdd178117 Increase number of skipped buffers to 5 to avoid mixing teletext pages from
different channels during channel switch.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24325 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-02 06:12:32 +00:00
nicodvb 0f4b9929eb a mouse selection may require at least a video codec reinit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24324 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 21:35:07 +00:00
nicodvb 4da74f1f7b implemented STREAM_CTRL_GET_ASPECT_RATIO
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24323 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 21:00:18 +00:00
voroshil a108787e00 Make sure that no pages will left in cache during
channel switch (immediately stop decoding of vbi buffer when clear_cache is called).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24321 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 18:49:51 +00:00
nicodvb d20ff3542d implemented STREAM_CTRL_GET_ASPECT_RATIO
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24318 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 15:51:41 +00:00
nicodvb 818cc0cf0d introduced STREAM_CTRL_GET_ASPECT_RATIO to report the aspect ratio read from the stream layer (if supported)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24317 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 15:50:52 +00:00