Commit Graph

516 Commits

Author SHA1 Message Date
voroshil 02159c2be1 Sizes of arpmt and arStreamCaps must be equal.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25124 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-21 03:49:23 +00:00
voroshil 01658583a4 Move code related to chain initialization and similar
for different chains to separate routine.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25122 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 19:33:27 +00:00
voroshil 49b320c00c Fix mplayer crash caused by r25116
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25121 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 17:19:16 +00:00
voroshil 7c9a04f6c0 Remove no more needed check
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25118 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 10:02:19 +00:00
voroshil 298dd31e32 Fix totally wrong (due to mess of brackets) structures size check.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25117 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 10:01:14 +00:00
voroshil a9aa43a249 Replace several parameters for get_available_formats_stream
and get_available_formats_pin with one chain structure.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25116 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-20 09:02:43 +00:00
voroshil 23cc31e505 New routine for reconnecting two pins with new media type
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25115 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 20:19:33 +00:00
voroshil 12fd879776 Move pointer to SampleGrabber filter into chain structure.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25114 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:49:17 +00:00
voroshil 423882fe73 Move common chain uninit code into separate routine.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25113 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:45:01 +00:00
voroshil 54203fe1d1 pass chain structure instead of several variables to build_sub_graph
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25112 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:33:53 +00:00
voroshil 002759bb8a fix missed change
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25111 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:25:25 +00:00
voroshil 2390359b25 Add capture filter's pointer to vbi chain structure too.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25110 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:24:21 +00:00
voroshil 8e2f39307a Code unification: get rid of local variable arpmtVBI
and use chain structure's arpmt member.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25109 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:15:36 +00:00
voroshil 2f8d411130 Add major media type to chain structure
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25108 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 19:02:09 +00:00
voroshil 110184516b One step of code cleanup: move all variables, related
to audio/video/vbi chains of filters into separate structure
(will simplify some parts of code in future)



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25107 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 18:53:13 +00:00
voroshil c30eaa2029 100l: Fix long standing copy-paste error:
TUN_SET_NORM should set norm value not get it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25105 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 09:05:23 +00:00
voroshil 5f8294fb14 Add all passed to VID_SET_FORMAT formats to the end of
available format list (but report call as failed, to
continue checking formats).

This gives small chance to build graph even if device
does not report about particular format as supported.

This makes mplayer be able to work with PVR-150 card
(card's driver does not report about yuy2 format, but
accepts connection and works with it).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25096 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 13:17:00 +00:00
voroshil a516b405d8 Ensure that when VID_GET_FORMAT ioctl is called,
video chain in graph is ready built.
Otherwise driver can return one format
while graph builder will negotiate another.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25095 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 11:36:57 +00:00
voroshil 8b33e65473 (cosmetics) Indentation fix of previous commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25094 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 11:15:14 +00:00
voroshil fa18524d05 New media format negotiation code:
loop through all available formats trying to
establish connection between pins.

Negotiation stops either when all formats are rejected
(error reported in this case) or when connection is
established (which can happen only when current media
format is accepted by both of the pins).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25093 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 11:13:28 +00:00
voroshil 1e663de892 Move setting media format code
closer to connection establishment routine.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25092 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 10:55:51 +00:00
voroshil 790cd7ec47 Pass all available formats to chain building routine and
establish connection with first of available formats.

This will make further format negotiation patch slightly
simpler. 

To avoid pins connection error due to unsuported format
at top of the list, put requested video format to the
top of list. This will also useful with upcoming patch -
negotiation will be started from requested format.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25091 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 10:51:22 +00:00
voroshil b7ad0227fb Ignore video formats which are supported by device
but not supported by dshow driver.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25089 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 08:24:30 +00:00
voroshil 78a0719de9 Fix crash when pin connection fails.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25088 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 06:16:37 +00:00
voroshil 0da22f962f Prevent chains from building more than once.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25087 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 05:20:17 +00:00
voroshil c8b82b4b80 Handle "out of memory" error.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25086 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 05:07:51 +00:00
voroshil 5c684e7e4c Move chains building code into separate routines.
This makes code more readable and will allow
building particular chain before start().



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25085 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 05:02:49 +00:00
voroshil bf33c147fa (cosmetics) Lookup table alignment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25082 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:55:16 +00:00
voroshil 88cd527ad0 Service routine for constructing AM_MEDIA_TYPE structure from
given fourcc with help of lookup table.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25081 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:51:46 +00:00
voroshil e0f028b2a4 Disable terminating directshow chains with NullRenderer filter,
bacause this causes jerky video.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25080 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:32:18 +00:00
voroshil 66d7d00ea2 Fix bogus bits per pixel values in lookup table.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25079 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:08:03 +00:00
reimar ee1dd235b3 Cleanup sg_io_hdr initialization a bit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25078 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:07:04 +00:00
reimar 9494622558 We do not have any use for the sense data, so we don't need a buffer for it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25077 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:02:30 +00:00
voroshil b40c2c3057 (cosmetics) Indentation fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25076 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:52:43 +00:00
reimar e7b7e24cc9 Some more cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25075 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:52:42 +00:00
reimar 77d7b8c9e0 Move the zeroing directly before the other initialization code
for the array/struct


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25074 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:49:33 +00:00
reimar e40792bf0e Move everything that sets buffer values together.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25073 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:46:52 +00:00
reimar d9f35323fa Another place that can use AV_WB32
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25072 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:40:46 +00:00
reimar be0a2badf7 Some cosmetics in dvd_set_speed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25071 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:35:36 +00:00
reimar e0720debf8 Move the DVD speed factor -> KB/s conversion into the case
branch where it is actually used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25070 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:31:26 +00:00
reimar dff474a1ce Add a missing close() to dvd_set_speed function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25069 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:27:17 +00:00
reimar 17a2278031 Open device file only right before we need it, so we do not
have to add close to all the abort code-paths


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25068 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:26:25 +00:00
reimar ed3b33cf03 Do not print Ok message when setting speed limit failed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25067 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:23:46 +00:00
reimar f647aa04e6 AV_WB16(..., 1000) more obviously represents one second that assigning
0x03 and 0xe8 (0x3e8 = 1000).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25066 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:22:42 +00:00
reimar 9424a3431d Use AV_WB32 instead of manual bit-fiddling when setting DVD speed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25065 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:20:04 +00:00
reimar 509ee9591c GPCMD_SET_STREAMING command is 12 bytes large, not 16
Patch by Sebastian Kemper (sebastian_ml gmx net)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25064 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:17:19 +00:00
rtogni de22a05645 Ignore stream id when checking rdt packet flags
Fixes bugzilla #930


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25063 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:08:53 +00:00
nicodvb adb4813ca8 report why the dvd couldn't be opened. Patch by Jan Knutar jknutar+nic+fi
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25059 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 21:32:09 +00:00
voroshil 13df91222f Make sure that mplayer will receive actual media type
instead of requested value.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25057 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 18:59:35 +00:00
voroshil b4355b2f1d Fix FPS from bitrate calculation (was 8 times larger than real value).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25056 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 17:57:12 +00:00