Commit Graph

908 Commits

Author SHA1 Message Date
Gerald Pfeifer 6c016ac039 quartz: Fix return value for StdMediaSample2_GetTime in error cases. 2010-04-26 07:02:48 -05:00
Henri Verbeet 56659c3a70 quartz: Don't return a pointer to a stack variable in AMFilterData_ParseFilterData(). 2010-04-07 13:50:07 +02:00
Mikhail Maroukhine 0a671deb92 quartz: Fix compiler warnings with flag -Wcast-qual. 2010-04-01 18:12:41 +02:00
Francois Gouget 3428b94a8d Assorted spelling and case fixes. 2010-03-22 10:49:13 +01:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Nikolay Sivov da550ed257 quartz: Don't cast WSTR to BSTR, convert properly instead. 2010-03-15 14:18:06 +01:00
Paul Chitescu af2bed44f8 quartz: Silence the FIXME that AsyncReader does not implement IBasicAudio. 2010-03-03 10:59:01 +01:00
Paul Chitescu daa4943322 quartz: Do not assert() the existence of a media format of an input pin. 2010-02-24 15:12:30 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Christian Costa b47091a488 quartz: Add stubbed IAMDirectSound interface to DSoundRenderer. 2010-02-08 17:14:44 +01:00
Christian Costa f48d3c8eab quartz/tests: Add test for querying IAMDirectSound from DSoundRenderer. 2010-02-08 17:14:44 +01:00
Maarten Lankhorst 201c9a14bf quartz: Add some tests for dsound renderer. 2010-02-01 13:56:01 +01:00
Paul Chitescu e03b98ec68 quartz: Only wait in IMediaEvent::WaitForCompletion if the filter is running. 2009-12-24 12:15:40 +01:00
Paul Chitescu 7251e91d4d quartz: Implement NullRenderer's IBaseFilter::FindPin. 2009-12-24 12:15:40 +01:00
Alexandre Julliard a3fbb39299 quartz: Implemented a number of the MediaPosition methods. 2009-11-24 15:53:37 +01:00
Alexandre Julliard c81ac66d87 quartz: Add proxies for strmif.idl. 2009-09-11 13:40:17 +02:00
Juan Lang e73f31a6ef quartz: Don't crash if sample allocation fails. 2009-08-28 11:54:49 +02:00
Chris Robinson 7ba802ac29 quartz: Release enumpins when done with it. 2009-05-27 11:11:42 +02:00
Christian Costa 74c07a141e quartz: Data may be incomplete at the end of file so do not assert if we have less data than expected. 2009-04-14 11:28:34 -05:00
Marcus Meissner 5fdf50f76d quartz: Make sure cookie* are not uninitialized (Coverity 760). 2009-04-06 12:56:30 +02:00
Kai Blin 3fbf3f66db quartz/tests: If CoCreateInstance() fails, it's safe to return, as no cleanup is needed. 2009-03-24 10:28:01 +01:00
Michael Stefaniuc efbb4ebf3e widl: Output "LONG" instead of "long" for a 32bit integer.
long is always 32bit in IDL files but that's not true in C.
2009-03-13 11:15:21 +01:00
Michael Stefaniuc 7ef5f44bb5 include: Change long to LONG in axextend.idl. 2009-03-12 13:09:54 +01:00
Michael Stefaniuc a3269bdc40 quartz: Change long to LONG in control.idl. 2009-03-11 13:03:31 +01:00
Henri Verbeet 166db1e934 quartz: Use a more appropriate size for the video renderer window. 2009-02-19 12:54:00 +01:00
Alasdair Sinclair 20f565de5e quartz/tests: Fix missing void in empty parameter list. 2009-01-30 11:43:29 +01:00
Michael Stefaniuc cc7fc4abef quartz: Remove superfluous pointer casts. 2009-01-29 14:06:01 +01:00
Nikolay Sivov 5ea119a3d0 quartz: Fix NULL pointer dereference (Coverity). 2009-01-27 14:57:41 +01:00
Paul Vriens b4d246ba8f quartz/tests: Fix test failures on Win95 by using A-functions. 2009-01-27 11:30:09 +01:00
Francois Gouget 8be5798e3f quartz: Make the IMemInputPin functions static. 2009-01-26 15:13:09 +01:00
Juan Lang 669ced3a67 quartz: Only test for the presence or absence of a single filter in a loop. Testing for more than one depends on the order of enumeration, which isn't guaranteed. 2009-01-22 15:28:23 +01:00
Paul Vriens 9908100305 quartz/tests: Fix some test failures on Win95. 2009-01-21 13:23:55 +01:00
Michael Stefaniuc 2724adae2d quartz/tests: Remove superfluous pointer casts. 2009-01-21 10:25:38 +01:00
Lei Zhang e9f1aa29b2 quartz: Add a filtergraph test for mpeg files. 2009-01-15 12:42:50 +01:00
Alexandre Julliard 8c33528372 quartz: Use SetWindowLongPtr to store a pointer value. 2009-01-08 17:30:57 +01:00
Alexandre Julliard 0014046adc quartz: Avoid a pointer cast in a trace. 2009-01-08 13:17:49 +01:00
Francois Gouget 14d44a06ba quartz: OutputPin_DeliverNewSegment() is unused so remove it. 2009-01-08 12:40:45 +01:00
Francois Gouget 5b92b39b2c quartz: Reorder some functions to avoid forward declarations. 2009-01-07 14:40:44 +01:00
Christian Costa fa8cd7435f quartz: Remove unused IMemInputPin vtables. 2008-12-30 13:40:33 +01:00
Christian Costa c83e4f130f quartz: Fix some traces and fixmes. 2008-12-29 12:52:21 +01:00
Lei Zhang d17609ad92 quartz: Ignore unknown chunks when parsing AVI headers. 2008-12-19 17:44:43 +01:00
Paul Vriens 061302483f quartz/tests: Fix test failures on Win9x by using A-functions. 2008-12-18 14:53:12 +01:00
Hans Leidekker 8bd9a3aa09 janitorial: Don't depend on user32 for the self registration functions. 2008-12-17 11:38:32 +01:00
Lei Zhang 7e1b714f74 quartz: Enumerate all the pins on filter and check directions when rendering. 2008-12-16 12:52:32 +01:00
Christian Costa 480e697035 quartz: Turn some fixmes into traces. 2008-12-08 22:02:29 +01:00
Christian Costa 1f45516d91 quartz: Accept null clsMinorType for pins when registering filters + tests. 2008-12-08 12:02:33 +01:00
Michael Stefaniuc 1a18b797eb quartz: Don't cast zero. 2008-12-05 12:36:24 +01:00
Alexandre Julliard 18bf17e828 quartz: Use FIELD_OFFSET instead of casting a pointer to int. 2008-12-04 12:14:58 +01:00
Christian Costa 50fda76b40 quartz: Return properly when input is flushing or reaching end of stream. 2008-12-03 09:49:19 +01:00
Alexandre Julliard e78ea286fb quartz: Make some functions and variables static. 2008-12-02 15:25:19 +01:00
Christian Costa 14485c365b quartz: Avoid leaking penummt and mt on error. 2008-12-01 14:05:49 +01:00
Francois Gouget 57908f889a quartz: Remove CALLBACK on static functions where not needed. 2008-11-26 12:10:51 +01:00
Francois Gouget 9517637eb4 quartz: Remove WINAPI on static functions where not needed. 2008-11-26 12:10:48 +01:00
Ricardo Filipe abe85bcb99 quartz: Removed dead code and variables (llvm/clang). 2008-11-25 11:49:51 +01:00
Maarten Lankhorst 8699661e96 quartz: Fix FilterGraph2_Connect to be thread-safe and not recurse infinitely. 2008-11-17 13:50:19 +01:00
Maarten Lankhorst f57896484c Revert "quartz: Reaching a renderer in the filtergraph is not an error."
This is plain wrong, input pin and output pin are supposed to be 
connected to each other, not the input pin being connected to a renderer 
pin and NOT reaching output pin
2008-11-17 13:11:42 +01:00
Lei Zhang 62a0bd65d2 quartz: Reaching a renderer in the filtergraph is not an error. 2008-11-14 11:02:15 +01:00
Paul Vriens 36c40e53e0 quartz/tests: Fix a few failures on Win95 and NT4. 2008-11-14 11:02:15 +01:00
David Adam 6ed258e220 quartz: Check for NULL condition in FilterGraph2_Disconnect. 2008-11-12 11:49:12 +01:00
Andrew Talbot a19ff5f07b quartz: Sign-compare warnings fix. 2008-11-05 10:56:54 +01:00
Andrew Talbot 9988ae3524 quartz: Sign-compare warnings fix. 2008-11-04 11:27:06 +01:00
Maarten Lankhorst b2d20154fa quartz: Implement dynamic format changing in directsound renderer. 2008-10-22 11:53:39 +02:00
Maarten Lankhorst ca0db58808 quartz: Fix ACMWrapper to allow mono channels too. 2008-10-22 11:53:30 +02:00
Michael Stefaniuc 56c6f7670b quartz: Use the right FAILED/SUCCEEDED macro instead of negating the opposite. 2008-10-08 13:42:06 +02:00
Aric Stewart a3c2c50809 quartz: Check hr so we are not incrementing a NULL (Coverity 106). 2008-10-07 11:59:14 +02:00
Rob Shearman 2fb89a4e36 quartz: Fix placement of WINAPI attribute in fnFoundSeek typedef.
MSVC requires that calling conventions appear inside the brackets.
2008-10-01 11:44:07 -05:00
Rob Shearman e7ecfe28a1 quartz: Don't use strlenW in array size declaration.
Use ARRAYSIZE() on the constant string arrays instead.
2008-10-01 11:44:02 -05:00
Maarten Lankhorst 907bb7ae1f quartz: Requeue in pullpin if request for data timed out.
If the filter is paused, no additional data will be queued and 
VFW_E_TIMEOUT is legitimately returned. Don't make this a fatal error, 
but instead try again. If flushing the thing will still abort.
2008-09-22 13:46:22 +02:00
Maarten Lankhorst d458efe072 quartz: Return VFW_E_WRONG_STATE in file source if flushing. 2008-09-22 13:46:17 +02:00
Maarten Lankhorst c71ba1a141 quartz: Don't abort starting for unconnected pin in avi splitter. 2008-09-22 13:46:12 +02:00
Maarten Lankhorst fd966f8322 quartz: Add missing calls to EndFlush. 2008-09-22 13:46:08 +02:00
Maarten Lankhorst f0f00d1625 quartz: Implement IMediaPosition::put_CurrentPosition. 2008-09-22 13:46:04 +02:00
Alexander Dorofeyev 48865c9064 quartz/tests: Fix potential NULL dereference (Coverity). 2008-09-10 11:03:23 +02:00
Paul Vriens ee14852ea9 quartz/tests: Fix the tests on several platforms. 2008-09-09 12:32:21 +02:00
Paul Vriens 8f23fc4e2f quartz/tests: Add a missing CoUninitialize. 2008-09-05 16:26:29 +02:00
Gerald Pfeifer dc302b7c1d quartz: Add return statement to PullPin_Thread_Main(). 2008-09-02 12:51:18 +02:00
Paul Vriens 5bef4b05dd quartz/tests: Use CreateFileA instead of CreateFileW to please win9x. 2008-08-28 11:24:49 +02:00
Alexandre Julliard 5d900bb0f6 Avoid some size_t printf format warnings. 2008-08-21 16:05:15 +02:00
Rob Shearman a35431a194 quartz: Use memcmp instead of strncmp in MPEGSplitter_pre_connect.
header isn't a string and therefore using strncmp doesn't make sense.
2008-08-18 17:34:13 +02:00
Rob Shearman 03a25b487f quartz: Fix testing of HRESULT types with not operator instead of comparing against S_OK.
This makes it more obvious what the code is doing.
2008-08-18 17:34:12 +02:00
Paul Vriens 04c40f2f5f quartz/tests: Skip some tests on NT4. 2008-08-05 14:09:34 +02:00
Maarten Lankhorst 94ef37400d quartz: Fix support for files with multiple odml indexes. 2008-07-29 11:54:52 +02:00
Maarten Lankhorst 6becc9e14b quartz: Fix end of file handling when first request is already end of file. 2008-07-29 11:54:41 +02:00
Maarten Lankhorst 89f4eeece3 quartz: Pass InputPin as parameter to transform filter. 2008-07-29 11:54:28 +02:00
Maarten Lankhorst 2b452ced74 quartz: Use correct media type in transformfilter's QueryAccept. 2008-07-29 11:54:20 +02:00
Maarten Lankhorst db2ccf43d4 quartz: Make transform filter return hresult from running/pausing. 2008-07-29 11:54:15 +02:00
Maarten Lankhorst fa38a7e313 quartz: Trace the iface pointer in the memory allocator. 2008-07-29 11:54:07 +02:00
Francois Gouget a516f27c2f quartz: assert.h is not a local include. 2008-07-28 11:34:26 +02:00
Maarten Lankhorst 3376ba6113 quartz: Fix end of stream handling in avi splitter.
The last frame wouldn't always be sent, this fixes that.
2008-07-22 13:11:22 +02:00
Maarten Lankhorst 271ee48301 quartz: Fix bugs that occur during connection. 2008-07-21 14:36:14 +02:00
Maarten Lankhorst 0f9356eb16 quartz: Fix handling of zero byte samples and endofstreams. 2008-07-21 14:36:04 +02:00
Francois Gouget bc5ce27947 Assorted spelling fixes. 2008-07-21 13:00:01 +02:00
Alexander Dorofeyev bca80e1a64 quartz: Fix interface leak in FilterGraph2_Render. 2008-07-18 11:15:30 +02:00
Alexander Dorofeyev 1656f6b7cc quartz: Add missing VariantClear after GetFilterInfo calls. 2008-07-18 11:15:24 +02:00
Alexander Dorofeyev 1cd83afda3 quartz: Fix variant handling in GetFilterInfo.
Removes unnecessary and unsafe type assignment, adds a missing VariantClear.
2008-07-18 11:15:17 +02:00
Alexander Dorofeyev 7c5a4481b1 quartz/tests: Fix interface leaks in filtergraph test. 2008-07-18 11:15:08 +02:00
Alexander Dorofeyev 6645999337 quartz: Fix interface leak in FilterGraph2_RemoveFilter. 2008-07-18 11:15:01 +02:00
Alexander Dorofeyev 4afad0a413 quartz/tests: Fix interface leaks in aggregation test. 2008-07-18 11:14:52 +02:00
Alexander Dorofeyev 33c6eeb9e3 quartz/tests: Add filtermapper aggregation tests. 2008-07-18 11:13:33 +02:00
Alexander Dorofeyev 4bc76025ba quartz/tests: Test querying IFilterMapper2 from FilterGraph. 2008-07-18 11:13:24 +02:00
Alexander Dorofeyev 0bea470dfc quartz: Aggregate filtermapper in filtergraph. 2008-07-18 11:13:14 +02:00
Alexander Dorofeyev d39ee67019 quartz: Make Filtermapper aggregatable. 2008-07-18 11:12:16 +02:00
Maarten Lankhorst 5299795a8d quartz: Fix wrong assignment of variable in parser. 2008-07-16 17:58:30 +02:00
Maarten Lankhorst 3ad7198961 quartz: Explicitly handle wave headers in avi splitter. 2008-07-16 17:52:31 +02:00
Maarten Lankhorst 28d6203ca9 quartz: Fix reference leak in avi splitter on end of stream. 2008-07-14 12:21:40 +02:00
Maarten Lankhorst 0e9704b02d quartz: Only allocate 1 buffer in transform filter. 2008-07-14 12:21:33 +02:00
Maarten Lankhorst cf1d2f5e42 quartz: Fix memory and sample leaks. 2008-07-14 12:21:26 +02:00
Maarten Lankhorst 36418d8ad1 quartz: Fix incorrect use of mtCurrent in transform filter. 2008-07-14 12:21:10 +02:00
Maarten Lankhorst 61ba32c036 includes: Add video mixing renderer header. 2008-07-11 14:50:44 +02:00
Michael Stefaniuc 5c0ff73db2 quartz: Add missing LeaveCriticalSection on error path (Smatch). 2008-07-11 14:07:25 +02:00
Maarten Lankhorst 2865c727de quartz: Make the file source rotate around the 'first' sample, to prevent starvation of a single stream.
This prevents the file source from starving a single thread off.
2008-07-11 13:58:24 +02:00
Maarten Lankhorst 484fdcf7e4 quartz: End the flush downstream first before restarting playback in pullpin. 2008-07-11 13:58:18 +02:00
Maarten Lankhorst e47bc7725e quartz: Call run before pausing in transform filter. 2008-07-10 14:42:38 +02:00
Maarten Lankhorst 86393897a8 quartz: Make filtergraph quieter. 2008-07-10 14:38:16 +02:00
Maarten Lankhorst fe9840f213 quartz: Make parser start even if some of the pins aren't connected. 2008-07-10 14:38:09 +02:00
Francois Gouget dbaec0a101 Assorted spelling fixes. 2008-07-10 13:40:15 +02:00
Maarten Lankhorst adcf93aeaf quartz: Fix deadlocks in dsound renderer. 2008-07-10 12:18:13 +02:00
Michael Stefaniuc 310b58994c quartz: Compare a file handle to INVALID_HANDLE_VALUE and not NULL. 2008-07-10 12:17:59 +02:00
Maarten Lankhorst 43d0acd26a quartz: Fix end of stream handling.
Flushing blocks any end of stream that may occur.
2008-07-10 12:17:20 +02:00
Maarten Lankhorst 6748f073ed quartz: Always set current position again. 2008-07-10 12:17:10 +02:00
Maarten Lankhorst 3adf811645 quartz: Add tests for avi splitter. 2008-07-09 10:59:31 +02:00
Maarten Lankhorst 19360d41a0 quartz: Add rewrite of avi splitter. 2008-07-09 10:59:27 +02:00
Maarten Lankhorst 992fb02c73 quartz: Fix deadlock with transform filter. 2008-07-09 10:58:27 +02:00
Alexander Dorofeyev 2364514431 quartz/tests: Add test for filter priority in IFilterGraph2_Render. 2008-07-09 10:43:33 +02:00
Alexander Dorofeyev 27c0cddbab quartz: Do not try renderers first. Use a single enumeration pass. 2008-07-09 10:43:27 +02:00
Alexandre Julliard 79c64acc7b tests: Don't depend on the static uuid libraries in the tests.
This avoids trouble with the broken MingW libraries when
cross-compiling the tests.
2008-07-08 17:51:45 +02:00
Andrew Talbot f0d7a2910e quartz: Remove unneeded address-of operators from function names. 2008-07-07 12:31:47 +02:00
Maarten Lankhorst 53782ca47a quartz: Fix parser/pullpin to only care about the state transition stopped<->playing. 2008-07-07 12:11:23 +02:00
Maarten Lankhorst e58855e0e9 quartz: Only call begin process functions in transform filter when stopped.
Fixes some graphical glitches that may occur otherwise.
2008-07-07 12:11:23 +02:00
Maarten Lankhorst 11e2b1ab2b quartz: Make sure transform filter commits allocator. 2008-07-07 12:11:23 +02:00
Maarten Lankhorst 6e4288ee70 quartz: Fix tiny bug in IGraphBuilder_Render. 2008-07-07 12:11:23 +02:00
Maarten Lankhorst 9985f2efc9 quartz: Implement state transitions in video renderer. 2008-07-04 19:50:52 +02:00
Maarten Lankhorst b6b67f698a quartz: Implement state transitions in directsound renderer, and block on pause. 2008-07-04 19:50:04 +02:00
Maarten Lankhorst ee317b19b2 quartz: Set filesource initial state to stopped.
Fixes a bug valgrind found.
2008-07-04 19:35:07 +02:00
Maarten Lankhorst 8b65914cf9 quartz: Make CLSID_AudioRender an alias for CLSID_DSoundRender. 2008-07-04 19:35:00 +02:00
Maarten Lankhorst 28c7b230ed quartz: Fix return value for video renderer. 2008-07-03 11:50:52 +02:00
Maarten Lankhorst e5767b1c02 quartz: Fix return values in directsound renderer. 2008-07-03 11:50:52 +02:00
Paul Vriens 0435574aed quartz/tests: Make tests run on everything lower then Vista. 2008-07-03 11:50:51 +02:00
Alexander Dorofeyev b312d42059 quartz: Fix memory leak and behavior on errors in FilterMapper_EnumMatchingFilters. 2008-07-02 12:23:43 +02:00
Alexander Dorofeyev bbd22ae06c quartz: Fix memory leak in FilterMapper_RegisterFilter. 2008-07-02 12:23:37 +02:00
Alexander Dorofeyev c206f91030 quartz: Fix memleak in FilterMapper2_RegisterFilter. 2008-07-02 12:23:25 +02:00
Alexander Dorofeyev d3e67c83a0 quartz: Fix memory leaks in FM2_DeleteRegFilter. 2008-07-02 12:23:19 +02:00
Alexander Dorofeyev 898152c024 quartz: Fix memory leaks in IEnumRegFiltersImpl_Release. 2008-07-02 12:23:14 +02:00
Alexander Dorofeyev 02943d96b4 quartz: Fix interface leak in EnumMonikerImpl_Release. 2008-07-02 12:23:04 +02:00
Alexander Dorofeyev 9778faee0b quartz: Improve variant handling in FilterMapper_EnumMatchingFilters.
Adds VariantClear and removes unnecessary variant type assignment that may cause 
heap corruption.
2008-07-01 13:45:38 +02:00
Alexander Dorofeyev bff9f1114a quartz/tests: Add test for IFilterMapper_RegisterFilter. 2008-07-01 13:45:38 +02:00
Alexander Dorofeyev 10b593b2e7 quartz: Fix string buffer overflow. 2008-07-01 13:45:38 +02:00
Alexander Dorofeyev cd5fa7dedb quartz: Improve removal of registry data in Filtermapper unregister methods. 2008-07-01 13:45:38 +02:00
Alexander Dorofeyev f9e2914ed6 quartz: Fix registry key creation. 2008-07-01 13:45:38 +02:00
Alexander Dorofeyev d6df899603 quartz: Fix calculating wide string size. 2008-07-01 13:45:38 +02:00
Alexander Dorofeyev d19ad8f072 quartz/tests: Add test for EnumMatchingFilters. 2008-07-01 13:45:38 +02:00
Alexander Dorofeyev dcc9032ed0 Revert "quartz: Only enumerate renderers if bRender is set in filtermapper.".
This reverts commit b157969d49.
2008-07-01 13:45:38 +02:00
Alexandre Julliard aa68258b7a Fix a few %ll printf formats. 2008-06-30 12:50:07 +02:00
Maarten Lankhorst d54c53a4b6 quartz: Fix Render and RenderFile.
RenderFile should add a source filter and call Render on each output
pin, while Render() should try to connect, first directly to any
existing renderers, and then using intermediates. It uses recursion
since this is the only possible way to implement Render sanely.
2008-06-27 11:13:10 +02:00
Maarten Lankhorst 0d1eea691c quartz: Make FilterGraph_Connect and ConnectDirect behave better.
Does some security checks that it won't connect a filter to itself,
and also cleans up after a failed connection attempt.
2008-06-27 11:12:03 +02:00
Maarten Lankhorst 46f4c4b4d8 quartz: Make removing filters work slightly better. 2008-06-27 11:10:44 +02:00
Maarten Lankhorst 3bda54bb04 quartz: Downgrade a fixme to a warn in dsoundrender. 2008-06-26 12:44:20 +02:00
Alexander Dorofeyev 1aff73455d quartz: Prevent heap corruption if IPropertyBag_Read fails. 2008-06-25 20:21:41 +02:00
Alexander Dorofeyev 2d8f7268ab quartz: Do not ignore current position in IEnumRegFiltersImpl_Next. 2008-06-25 20:21:30 +02:00
Alexander Dorofeyev c782cdad96 quartz: Fix accessing variant string. 2008-06-25 20:21:26 +02:00
Maarten Lankhorst 8bedda7e1f quartz: Make the memory allocator emit more warnings and fix race condition. 2008-06-25 10:41:58 +02:00
Maarten Lankhorst 6aabf5d39e quartz: Create thread after connection is made. 2008-06-25 10:41:52 +02:00
Maarten Lankhorst 33294331d2 quartz: Remove dead code from DSoundRender. 2008-06-25 10:41:47 +02:00
Maarten Lankhorst cdb66444ed quartz: Handle case where ReceiveConnection is called on an already connected pin. 2008-06-25 10:39:47 +02:00
Maarten Lankhorst e8a023f9f8 quartz: Clear pin value if not connected. 2008-06-24 11:47:33 +02:00
Maarten Lankhorst 9009e68c5b quartz: Add support for VideoInfoHeader2 to AVI Decompressor. 2008-06-24 11:47:29 +02:00
Maarten Lankhorst b157969d49 quartz: Only enumerate renderers if bRender is set in filtermapper. 2008-06-24 11:47:24 +02:00
Maarten Lankhorst d283bcdb62 quartz: DSoundRender shouldn't delete buffer when already connected. 2008-06-24 11:47:19 +02:00
Maarten Lankhorst 3d43a629d0 quartz: Have thread safety in memallocator. 2008-06-24 11:47:15 +02:00
Maarten Lankhorst dae09d000c quartz: Implement VideoRenderer_GetCurrentImage. 2008-06-24 11:47:10 +02:00
Maarten Lankhorst 0bdc8bc5c1 quartz: Implement GraphConfig_Reconfigure. 2008-06-24 11:47:04 +02:00
Maarten Lankhorst 00beed3d9e quartz: Implement IBasicVideo2 for the filtergraph. 2008-06-21 11:16:54 +02:00
Maarten Lankhorst 2eb66373f5 quartz: Implement IMediaSeeking in the video renderer. 2008-06-21 11:16:45 +02:00
Maarten Lankhorst 29b6dbab80 quartz: Implement MediaControl_GetState.
This allows applications to wait for state transitions to be really
complete. Fixes some xvid crashes.
2008-06-21 11:16:36 +02:00
Maarten Lankhorst aaee8a1b0e quartz: Try to render any existing renderers before creating a new one. 2008-06-21 11:16:32 +02:00
Maarten Lankhorst 365bbe8343 quartz: Expose some methods so that a custom allocator can be created. 2008-06-21 11:15:27 +02:00
Maarten Lankhorst 3a9040c1f2 quartz: Only query for event interface when there is a filtergraph.
Prevents a null pointer dereference.
2008-06-21 11:15:07 +02:00
Maarten Lankhorst e8705402a4 quartz: Add the ability to force a pin to use a certain renderer. 2008-06-21 11:14:58 +02:00
Maarten Lankhorst fc3377d08b quartz: Forward some messages from IMediaSeekingPassThru. 2008-06-19 12:34:55 +02:00
Maarten Lankhorst 9473b750bf quartz: Set data length in avi decompressor. 2008-06-19 11:42:14 +02:00
Maarten Lankhorst 40c0566879 quartz: Improve the directsound renderer a bit. 2008-06-19 11:42:08 +02:00
Maarten Lankhorst 5026c25e05 quartz: Initialize some uninitialized variables in the video renderer. 2008-05-22 11:46:25 +02:00
Maarten Lankhorst c4e32aad01 quartz: Do timekeeping in the avi decoder.
Fixes the timestamps generated.
2008-05-22 11:46:19 +02:00
Maarten Lankhorst 6d7518685e quartz: Don't free memory twice in null renderer.
_Release already frees it.
2008-05-22 11:46:05 +02:00
Paul Vriens 64444ebe94 janitorial: Close COM after tests. 2008-05-19 23:10:01 +02:00
Maarten Lankhorst 98f0b5f479 quartz: Reset time when rejecting sample in the mpeg splitter. 2008-05-13 11:21:12 +02:00
Maarten Lankhorst 7d6e28c3bb quartz: Silence a fixme. 2008-05-13 11:21:05 +02:00
Lei Zhang a4d0d4fe36 quartz: Check input in MediaControl_GetState. 2008-05-13 10:57:45 +02:00
Maarten Lankhorst c83a63d4b6 quartz: Don't return a pin in filesource when there is none.
Based on a patch by Olivier Samyn.
2008-05-12 11:42:43 +02:00
Francois Gouget 633ee950a1 Assorted spelling fixes. 2008-05-07 12:07:11 +02:00
Francois Gouget 42a61d7ed7 Assorted spelling fixes. 2008-05-06 16:10:20 +02:00
Alexandre Julliard aac5fa3469 Revert "quartz: Clean up pullpin code."
This reverts commit 3066116f76.
2008-05-05 19:46:15 +02:00
Maarten Lankhorst 753ac6f015 quartz: Silence a fixme that isn't. 2008-05-01 12:35:30 +02:00
Maarten Lankhorst 8099a62469 quartz: Get rid of the sample holding code in the wave parser. 2008-05-01 12:35:30 +02:00
Maarten Lankhorst 0f73bbad8c quartz: Get rid of the sample holding code in the mpeg splitter.
Instead just revert the position slightly, this is a lot easier to maintain.
2008-05-01 12:35:30 +02:00
Maarten Lankhorst 3066116f76 quartz: Clean up pullpin code. 2008-05-01 12:35:30 +02:00
Maarten Lankhorst c4cdfdac35 quartz: More filesource fixes.
After a flush call there should be no more samples in the buffer.
2008-05-01 12:35:30 +02:00
Maarten Lankhorst 4afc2ae951 Revert "quartz: Handle failures better in acmwrapper.".
This reverts commit 1ba8ece76e.

Code for holding sample doesn't make sense and shouldn't be there
because it should really be handled by keeping track of the last
successful position of a frame sent and aborting the whole processing
as soon as rejection occurs.
2008-05-01 12:35:30 +02:00
Alexandre Julliard dad21bbcbf makefiles: List the static libraries as normal imports instead of extra libs. 2008-04-30 14:23:55 +02:00
Maarten Lankhorst 4e761d2613 quartz: Some state changes fixes. 2008-04-29 12:45:53 +02:00
Maarten Lankhorst 1ba8ece76e quartz: Handle failures better in acmwrapper. 2008-04-29 12:45:38 +02:00
Maarten Lankhorst 37847b0d9b quartz: Keep track of the time in the video renderer. 2008-04-29 12:45:31 +02:00
Maarten Lankhorst 1fad872961 quartz: Fix bug in memallocator with test. 2008-04-29 12:45:17 +02:00
Maarten Lankhorst 10708b405c quartz: Fix acmwrapper time regression. 2008-04-28 14:21:56 +02:00
Maarten Lankhorst 512ee927cb quartz: Add a function that can be called when stopping processing data. 2008-04-28 14:21:53 +02:00
Maarten Lankhorst ec87de35af quartz: Make dwSamplesProcessed a longlong. 2008-04-28 14:21:41 +02:00
Maarten Lankhorst 12a0fd3d8b quartz: Optimize the file source to do its job better. 2008-04-28 14:21:35 +02:00
Maarten Lankhorst 7934951343 quartz: Make the EnumPins interface dynamic.
Take a reference to the ibasefilter and request it for the pins and a
cookie. This seems to be the easiest way to ensure correctness.
2008-04-28 14:21:23 +02:00
Maarten Lankhorst b7e20bfdd1 quartz: Fix time discontinuities in the acm wrapper. 2008-04-28 14:21:00 +02:00
Maarten Lankhorst 9e143cdb63 quartz: NotifyAllocator does not like a null argument. 2008-04-28 14:20:53 +02:00
Maarten Lankhorst 1f136a57f7 quartz: Add a vtable argument to Parser_Create that individual filters can override. 2008-04-28 14:20:44 +02:00
Andrew Talbot 523552fcc3 quartz: Remove unused variables. 2008-04-24 11:49:56 +02:00
Maarten Lankhorst e0fe0ef01b quartz: Make the file source support multiple samples by preallocating enough handles. 2008-04-23 13:04:36 +02:00
Maarten Lankhorst 3a39805ed8 quartz: Make wave parser and mpeg splitter zero copy by getting rid of the seperate allocator for the output pin. 2008-04-23 13:03:50 +02:00
Maarten Lankhorst ec124be823 quartz: Add some sanity checks to file splitter. 2008-04-23 13:02:53 +02:00
Maarten Lankhorst 4abbf915d3 quartz: Copy discontinuity status in acmwrapper. 2008-04-23 13:02:48 +02:00
Maarten Lankhorst 2f736c4a5a quartz: Fix inverted logic in memallocator. 2008-04-23 13:02:42 +02:00
Maarten Lankhorst 1e9dbcc512 quartz: Fix error message names in tests. 2008-04-23 13:02:36 +02:00
Maarten Lankhorst a022467690 quartz: Optimize the processing thread to fetch one sample while processing another. 2008-04-23 13:02:28 +02:00
Austin English aab8fae59a Spelling fixes. 2008-04-21 14:25:05 +02:00
Maarten Lankhorst f9c2d8e2f4 quartz: Add some more tests and fix wine to pass them. 2008-04-21 14:05:38 +02:00
Maarten Lankhorst 810a933f68 quartz: Change longlong printfs. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst c1a4acde01 quartz: Add more seek entries and fix a time continuity bug. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst 9d9bf6f158 quartz: Only drop Preroll samples after obtaining its time. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst d7fbc7ef8c quartz: Drop preroll frames in directsound renderer too. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst fb2c975a8f quartz: No longer drop packets on discontinuities. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst 0458c08b95 quartz: Set media time in the file source. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst 172347341a quartz: Make acmwrapper respect preroll samples. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst d16639d1fa quartz: Flux AsyncReader in PullPin_BeginFlush. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst 33b2f69c9f quartz: Fix sample leak in file source on failure path. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst 119d7caf79 quartz: Fix theoretical memory leak. 2008-04-21 14:05:37 +02:00
Maarten Lankhorst 458b09a84d quartz: Make the video renderer drop preroll samples. 2008-04-21 14:05:37 +02:00
Alexandre Julliard df75bde180 quartz: Avoid sizeof in traces. 2008-04-17 20:17:03 +02:00
Austin English 313a85f163 Spelling fixes. 2008-04-17 12:25:57 +02:00
Maarten Lankhorst ebaadba498 quartz: Obtain the duration using the index in avisplitter. 2008-04-17 11:43:05 +02:00
Maarten Lankhorst 1625817113 quartz: Store the stream index in the avi stream for files that have them. 2008-04-17 11:42:50 +02:00
Maarten Lankhorst a0e8b97ffe quartz: Check for discontinuities in the directsound renderer. 2008-04-17 11:42:41 +02:00
Maarten Lankhorst 97b9e9c3ad quartz: Make sure at least 1 sample is processed before returning. 2008-04-17 11:42:24 +02:00
Maarten Lankhorst 405e21d558 quartz: Reject samples in transform filter only when stopped.
Use S_FALSE for saying sample is rejected.
2008-04-17 11:42:15 +02:00
Maarten Lankhorst 3dc8384aa9 quartz: Reject samples in video renderer when stopped.
When stopped video renderer no longer updates, so don't even try.
2008-04-17 11:42:07 +02:00
Maarten Lankhorst 382a61391f quartz: Fix IMediaSample2 SetPreroll and SetSyncPoint. 2008-04-17 11:41:58 +02:00
Maarten Lankhorst cbb0ff37fa quartz: Fix discontinuities in wave parser. 2008-04-17 11:41:52 +02:00
Maarten Lankhorst 6165d87fc5 quartz: Add a Disconnect function to the parser and use it to clean up allocated memory in avisplitter. 2008-04-16 14:16:23 +02:00
Maarten Lankhorst aa623d2eff quartz: Parse old style avi index. 2008-04-16 14:16:09 +02:00
Maarten Lankhorst f66ad4dbe0 quartz: Make the avi splitter skip index headers. 2008-04-16 14:15:19 +02:00
Maarten Lankhorst 64be38a5b2 quartz: Dump opendml indexes and header. 2008-04-16 14:15:11 +02:00
Maarten Lankhorst 0b32692451 include: Update aviriff header. 2008-04-15 14:34:01 +02:00
Maarten Lankhorst 1281b74956 quartz: Update start_time if the current position is changed. 2008-04-15 14:33:45 +02:00
Maarten Lankhorst 3e9cee050f quartz: Add VIDEOINFOHEADER2 support to VideoRenderer. 2008-04-15 14:33:36 +02:00
Maarten Lankhorst ebe438c82a quartz: Bring waveparser to the same level as the mpeg splitter. 2008-04-14 23:50:13 +02:00
Maarten Lankhorst ba10e6104a quartz: Silence seeking fixmes on transform filter. 2008-04-14 23:50:13 +02:00
Maarten Lankhorst 5fb4224f81 quartz: Silence requests for IVideoWindow. 2008-04-14 23:50:13 +02:00
Maarten Lankhorst c8e31b5bdd quartz: Set sane defaults for pin stream rate. 2008-04-14 23:50:13 +02:00
Maarten Lankhorst 48f80f6296 quartz: Don't clean up in avi decoder if driver isn't opened. 2008-04-14 23:50:13 +02:00
Maarten Lankhorst bd324db059 quartz: Add stubs for the IMediaSeeking interface in SeekingPassThru. 2008-04-10 11:31:11 +02:00
Maarten Lankhorst 65e6bbd186 quartz: Add a stub for SeekingPassThru. 2008-04-10 11:31:06 +02:00
Maarten Lankhorst 2734e6332c quartz: Implement stop position in the mpeg splitter. 2008-04-10 09:50:48 +02:00
Maarten Lankhorst 43f9fff0a0 quartz: Implement stop position in the filtergraph. 2008-04-10 09:48:13 +02:00
Maarten Lankhorst f2dccab7e3 quartz: Make the directsound renderer handle the Play->Pause->Play position without dropping data. 2008-04-09 12:07:21 +02:00
Maarten Lankhorst 24cac935f0 quartz: Generate a seek table for the mpeg splitter.
Speeds up seeking mp3's on large files.
2008-04-09 12:07:16 +02:00
Maarten Lankhorst 55f3ba9dc0 quartz: Remove while { } while construct.
Thanks to Andrew Talbot for spotting this.
2008-04-09 12:07:11 +02:00
Michael Stefaniuc 71e9455b73 quartz: Add missing lock releases on some code paths (Smatch). 2008-04-09 11:47:07 +02:00
Maarten Lankhorst 994af69cac quartz: Make the pullpin forward the BeginFlush before doing its own flushing. 2008-04-09 11:43:09 +02:00
Maarten Lankhorst 4763e83b60 quartz: Don't free a null media type in the file source. 2008-04-09 11:43:05 +02:00
Maarten Lankhorst de117c1eb5 quartz: Make the DirectSound renderer return S_FALSE packet if in the paused state. 2008-04-09 11:42:59 +02:00
Maarten Lankhorst 8939a41563 quartz: Drop packets in the transform filter if in the wrong state. 2008-04-09 11:42:55 +02:00
Maarten Lankhorst 0117468754 quartz: Try creating the file reader from the filter source first before falling back to the generic async file reader. 2008-04-09 11:42:37 +02:00
Maarten Lankhorst 4bc4457109 quartz: Make mpeg splitter keep track of play position and keep last sample if sending was not successful.
This fixes data discontinuities that earlier occured after a
stop/pause command or the downright rejection of a sample (S_FALSE).
2008-04-09 11:42:17 +02:00
Maarten Lankhorst f4d9c09dd4 quartz: Fix deadlocks in pullpin. 2008-04-08 12:21:00 +02:00
Maarten Lankhorst d1aa222e85 quartz: Make wait timeout in directsound slightly larger. 2008-04-08 12:20:55 +02:00
Maarten Lankhorst 01c6e64da6 quartz: Handle flushing and end of stream notifications for input pins. 2008-04-07 11:35:36 +02:00
Maarten Lankhorst ee792916e0 quartz: Reset EcCompleteCount before starting filters.
This sends EC_COMPLETE notifications to the application after a graph has
finished running for the second time.
2008-04-07 11:35:29 +02:00
Maarten Lankhorst 3d3dcc4e07 quartz: Fix past mistake to release lock during seeking and changing state. 2008-04-07 11:35:21 +02:00
Maarten Lankhorst 45bd38ece3 quartz: Fix some memory leaks in the file source. 2008-04-07 11:35:11 +02:00
Maarten Lankhorst d56c50c85b quartz: Make FileAsyncReader_WaitForNext return an empty sample in flushing state. 2008-04-07 11:35:06 +02:00
Maarten Lankhorst fab66ee7a0 quartz: Get rid of code duplication and add a flush method. 2008-04-07 11:34:59 +02:00
Maarten Lankhorst 7f7c1d0752 quartz: Add more state transitions to the filtergraph. 2008-04-07 11:34:39 +02:00
Maarten Lankhorst cfeca053b8 quartz: Fix memory leak found by valgrind. 2008-04-03 11:29:47 +02:00
Maarten Lankhorst 9c0ea9eaa8 quartz: Implement seeking on the null renderer. 2008-04-02 23:17:16 +02:00
Maarten Lankhorst 9d6239bdac quartz: Fix stop_playback used in pullpin. 2008-04-02 23:17:07 +02:00
Maarten Lankhorst 975dc03302 quartz: Make acmwrapper respond to a sample discontinuity by dropping the frame after parsing it. 2008-04-02 11:16:35 +02:00
Maarten Lankhorst 553fe8565d quartz: Add seeking to mpeg splitter. 2008-04-02 11:16:28 +02:00
Maarten Lankhorst b1b75243d4 quartz: Prepare mpeg splitter code for seeking by making most splitter parsing locked. 2008-04-02 11:16:18 +02:00
Maarten Lankhorst 0e9ed6b402 quartz: Fix parser and pins logic to no longer deadlock. 2008-04-02 11:16:09 +02:00
Maarten Lankhorst 855e3a08b5 quartz: Implement filtergraph mediaseeking setposition. 2008-04-02 11:15:43 +02:00
Maarten Lankhorst 7cb1324ae3 quartz: Don't hold lock when changing state in filtergraph. 2008-04-02 11:15:29 +02:00
Maarten Lankhorst 4b5d06d30f quartz: Fix locking in MediaSeeking and forward SetPosition.
Don't hold locks while forwarding messages, instead rely on the
reference count. This prevents some really fun deadlocks from
occuring.
2008-04-02 11:15:22 +02:00
Maarten Lankhorst e18129068e quartz: Implement seeking stubs for transform filters. 2008-04-02 11:15:13 +02:00
Maarten Lankhorst c56389ea3c quartz: Implement graph MediaSeeking GetPositions. 2008-04-01 23:38:22 +02:00
Maarten Lankhorst 1544e52397 quartz: Allow parser filters to implement their own seeking methods. 2008-04-01 23:21:38 +02:00
Maarten Lankhorst 6fd90f1625 quartz: Small mpeg splitter fixes.
Just to be cautious, since it reads 4 bytes it should stop trying at
EOF-3. Also be more strict with the return values.
2008-04-01 23:21:38 +02:00
Chris Robinson 4a68b33029 quartz: Break processing loop when shutting down. 2008-04-01 11:26:29 +02:00
Maarten Lankhorst 714e807aa5 quartz: Check against a null dereference and don't read beyond the end of file. 2008-03-31 12:51:16 +02:00
Andrew Talbot 892c31e4db quartz: Assign to structs instead of using CopyMemory. 2008-03-31 12:50:37 +02:00
Maarten Lankhorst 39623a403a quartz: Add GetCurrentPosition using the reference clock. 2008-03-28 09:51:00 +01:00
Maarten Lankhorst cc3ef90db0 quartz: Change name from Start position to Current position in MediaSeeking. 2008-03-28 09:50:51 +01:00
Alexandre Julliard 6af76b3daa quartz: Avoid %ll printf formats. 2008-03-26 18:01:09 +01:00
Reece Dunn 1b31c6e616 quartz: Fixed building with MSVC headers. 2008-03-24 21:05:13 +01:00
Maarten Lankhorst db8b2ca7b4 quartz: Silence requests for ipin on filters. 2008-03-24 11:32:26 +01:00
Maarten Lankhorst 4d745e0051 quartz: Forward requests for MediaSeeking from all pins properly. 2008-03-24 11:32:19 +01:00