Zebediah Figura
8a8c5a8229
strmbase: Rename pfnGetPin to filter_get_pin.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 11:25:35 +02:00
Zebediah Figura
97546ca0b7
strmbase: Use an unsigned int for the GetPin() callback.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 11:25:35 +02:00
Zebediah Figura
43444f4096
strmbase: Rename BaseFilter_Destroy() to strmbase_filter_cleanup().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 09:27:19 +02:00
Zebediah Figura
dad885e2b9
strmbase: Get rid of the "pfnGetPinCount" callback.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 10:29:15 +02:00
Zebediah Figura
df05902b96
strmbase: Get rid of the "pfnBreakConnect" field from BaseOutputPinFuncTable.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-13 12:48:18 +02:00
Zebediah Figura
9be7995448
strmbase: Get rid of the "pfnGetMediaTypeVersion" callback.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-10 16:04:25 +02:00
Zebediah Figura
7e6ab5e53c
strmbase: Move "AttemptConnection" to the base source pin function table.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-10 15:54:15 +02:00
Zebediah Figura
5c06f4e4d5
quartz: Avoid importing shlwapi.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-29 09:37:03 +02:00
Zebediah Figura
dbca5c5667
quartz/filesource: Remove some incorrect assertions.
...
There's no point checking the sample's time again. Moreover, short reads are
not an error.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-26 15:01:01 +01:00
Zebediah Figura
3d24e7dea9
quartz/filesource: Set the sample length in IAsyncReader_SyncReadAligned().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-26 15:01:01 +01:00
Zebediah Figura
4df6d303d6
quartz/filesource: Correctly report short reads from IAsyncReader_SyncReadAligned().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-25 12:29:10 +01:00
Zebediah Figura
930e0cdc08
quartz/filesource: Correctly report short reads from IAsyncReader_SyncRead().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-25 12:28:55 +01:00
Zebediah Figura
529af77051
quartz/filesource: Return a default media type from FileAsyncReaderPin_GetMediaType().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-22 12:29:28 +01:00
Zebediah Figura
a67ad09528
quartz/filesource: Correctly initialize the default media type.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-22 12:29:22 +01:00
Zebediah Figura
048474b15e
quartz/filesource: Don't check formattype in FileAsyncReaderPin_CheckMediaType().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-21 16:08:05 +01:00
Sven Baars
889fe31483
quartz: Fix some memory leaks (Valgrind).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-26 11:51:55 +01:00
Zebediah Figura
2a1cc4330a
quartz/filesource: Don't expose IAMFilterMiscFlags.
...
This reverts 9dedc4a795
.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 11:03:41 +02:00
Michael Stefaniuc
53c80a2bd1
quartz: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-17 22:36:06 +02:00
Zebediah Figura
d88218324b
quartz: Use CBaseFilter::FindPin().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:27 +02:00
Zebediah Figura
10ff8f3082
strmbase: Implement QueryAccept() on top of CheckMediaType() for output pins too.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-04 11:01:40 +02:00
Alistair Leslie-Hughes
e317164f8f
quartz: Output This in TRACE statements.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-09 16:59:11 +01:00
Alistair Leslie-Hughes
84f5761a67
quartz: Use standard wine_dbgstr_longlong.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 08:41:39 +09:00
Nikolay Sivov
5cdb0b5842
quartz: Use wine_dbgstr_longlong() to trace REFERENCE_TIME.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-25 19:50:26 +01:00
Michael Stefaniuc
ddfc1a2e88
quartz: Use the proper COM method wrappers.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-12 22:58:54 +09:00
Michael Müller
355a3248d4
quartz: FileSource_Load should not fail on unknown file formats.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:30 +09:00
Sebastian Lackner
b28a8a3157
quartz: Add check for NULL pointer in FileSource_Load.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 23:22:29 +09:00
Francois Gouget
4f91683580
quartz: Fix spelling of a BaseOututPin method implementation name.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-13 23:01:12 +09:00
Nikolay Sivov
5fb58eae3b
quartz: Minor cleanup of returned interface pointers.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 21:09:10 +09:00
Sebastian Lackner
2e6ff19e0e
quartz: Distinguish interface pointer and implementation pointer in multiple interfaces.
2015-06-26 20:35:05 +09:00
Thomas Faber
7c5d0789d0
quartz: Destroy BaseOutputPin in FileAsyncReaderPin_Release.
2014-07-28 17:23:22 -05:00
Thomas Faber
5ce8c7a5a7
quartz: Destroy BaseFilter after child class.
2014-07-22 12:07:34 +02:00
Jacek Caban
289bdc4f45
strmbase: Store BasePinFuncTable inside Base*PinFuncTable structs.
2014-01-06 20:47:02 +01:00
Marcus Meissner
2d05c24a1e
quartz: Free wszPatternString (Coverity).
2013-03-15 11:42:10 +01:00
Alessandro Pignotti
e583f8806e
quartz: Check byte patterns in GetFileSourceFilter.
...
The idea is to create a temporary AsyncReader and use it to match a
better filter. If no match is found the temporary filter is returned.
2013-02-27 19:23:12 +01:00
Alessandro Pignotti
916854c5a8
quartz: Make GetClassMediaFile visible in the module.
2013-02-27 19:23:11 +01:00
Alessandro Pignotti
fb2551c59b
quartz: Modify GetClassMediaFile to also extract the SourceFilter value.
2013-02-27 19:23:10 +01:00
Andrew Talbot
17cc65a0df
quartz: Remove unused variables.
2012-11-22 11:54:42 +01:00
Nikolay Sivov
17450f0be0
quartz: Use proper method macros.
2012-08-15 12:17:54 +02:00
Aric Stewart
e7d4d9e4f6
quartz: COM cleanup for AsyncReader and FileAsyncReader.
2012-04-02 14:00:20 +02:00
Aric Stewart
29d3c75442
strmbase: COM cleanup for BaseFilter.
2012-03-26 18:15:48 +02:00
Francois Gouget
5f88f362ea
dlls: Standardize on 'static const WCHAR' for our Unicode string literals.
...
Do the same for the corresponding Ansi strings.
2011-12-20 10:16:09 +01:00
Francois Gouget
e8f42fb29e
quartz: Avoid hardcoding the Unicode string literal lengths.
2011-12-16 17:40:39 +01:00
Marcus Meissner
63823061ed
quartz: Handle NULL return from strchr() (Coverity).
2011-05-03 19:34:27 +02:00
Marcus Meissner
82cd229cc2
quartz: Removed const from const REFIID (Coverity).
2011-03-14 19:31:29 +01:00
Maarten Lankhorst
945793722d
quartz: Implement AsyncReader_FindPin.
2010-12-01 17:17:41 +01:00
Maarten Lankhorst
9dedc4a795
quartz: Add IAMFilterMiscFlags to file source.
2010-11-05 11:24:46 +01:00
Aric Stewart
7e8751b2e1
strmbase: More properly standardized pin implementations for NewSegment.
2010-11-01 14:53:29 +01:00
Aric Stewart
60bf76db9a
strmbase: Remove non-standard custom allocator logic from strmbase.
...
Implement function overrides for parser.c where a custom allocator was needed.
2010-10-14 17:54:52 +02:00
Aric Stewart
7602829c4f
strmbase: Add GetMediaType and GetMediaTypeVersion to BasePin function table.
...
Allows for more widespread use of the BasePinImpl version of EnumMediaTypes.
2010-10-14 17:54:51 +02:00
Aric Stewart
3c2dfd186a
strmbase: Standardize "class" function into functions tables in the structs.
...
This allows the standardization of the "class" functions to use the
class as the argument and will aid in expanding the implementation of
these functions.
2010-10-14 17:54:51 +02:00
Aric Stewart
8f3c3723bb
strmbase: Clean up the allocator negotiating for BaseOutputPin.
2010-10-14 17:54:51 +02:00
Aric Stewart
791087089c
strmbase: Add an implementation of BaseFilterImpl_EnumPins.
2010-10-08 11:04:09 +02:00
Aric Stewart
1d42659c40
strmbase: Implement BaseFilter in strmbase.
2010-10-08 11:04:04 +02:00
Aric Stewart
5c1409b55f
strmbase: Move OutputPin implementation to strmbase.
2010-10-06 20:46:48 +02:00
Aric Stewart
0410e50e00
strmbase: Move BasePin implementation to strmbase.
2010-10-06 20:46:48 +02:00
Aric Stewart
bb110c7749
strmbase: Move enumpins from quartz to strmbase.
2010-10-06 20:46:47 +02:00
Aric Stewart
89ea07f7d0
strmbase: Add the EnumMediaTypes base implementation.
2010-10-06 20:46:47 +02:00
Paul Chitescu
af2bed44f8
quartz: Silence the FIXME that AsyncReader does not implement IBasicAudio.
2010-03-03 10:59:01 +01:00
Michael Stefaniuc
cc7fc4abef
quartz: Remove superfluous pointer casts.
2009-01-29 14:06:01 +01:00
Aric Stewart
a3c2c50809
quartz: Check hr so we are not incrementing a NULL (Coverity 106).
2008-10-07 11:59:14 +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
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
ee317b19b2
quartz: Set filesource initial state to stopped.
...
Fixes a bug valgrind found.
2008-07-04 19:35:07 +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
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
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
e0fe0ef01b
quartz: Make the file source support multiple samples by preallocating enough handles.
2008-04-23 13:04:36 +02:00
Maarten Lankhorst
ec124be823
quartz: Add some sanity checks to file splitter.
2008-04-23 13:02:53 +02:00
Maarten Lankhorst
0458c08b95
quartz: Set media time in the file source.
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
Austin English
313a85f163
Spelling fixes.
2008-04-17 12:25:57 +02:00
Maarten Lankhorst
5fb4224f81
quartz: Silence requests for IVideoWindow.
2008-04-14 23:50:13 +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
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
Andrew Talbot
892c31e4db
quartz: Assign to structs instead of using CopyMemory.
2008-03-31 12:50:37 +02:00
Maarten Lankhorst
db8b2ca7b4
quartz: Silence requests for ipin on filters.
2008-03-24 11:32:26 +01:00
Maarten Lankhorst
25f9d3c173
quartz: Implement detection on file extension in filesource.
2008-03-14 12:58:52 +01:00
Andrew Talbot
442f29ab49
quartz: Assign to structs instead of using memcpy.
2008-03-13 11:30:24 +01:00
Michael Stefaniuc
41044dcd8c
quartz: Fix memory leaks on error paths. Found by Smatch.
2007-11-19 13:53:56 +01:00
Chris Robinson
9d1f49cd9f
quartz: Set the sample time based on the number of bytes read before sending it downstream.
2007-04-02 11:16:00 +02:00
Chris Robinson
3487da71ce
quartz: Fully disconnect the AsyncReader when released.
2007-03-21 11:56:00 +01:00
Jan Zerebecki
b5619e8628
quartz: Add DebugInfo to critical sections.
...
Also add missing DeleteCriticalSection.
2007-03-12 13:39:49 +01:00
Chris Robinson
0717c96192
quartz: Improve reference traces.
2007-03-05 18:08:29 +01:00
Chris Robinson
efe156ae8e
quartz: Don't AddRef an object we just created and are handing back to the caller.
2007-03-05 13:00:24 +01:00
Chris Robinson
0885141c64
quartz: Properly handle input parameters in FileSource_GetCurFile.
2007-02-14 12:29:57 +01:00
Hans Leidekker
cfbb859f59
quartz: Win64 printf format warning fixes.
2006-10-13 12:08:41 +02:00
James Hawkins
99e2c6dff2
janitorial: Remove redundant NULL checks before CoTaskMemFree (found by Smatch).
2006-10-07 17:52:51 +02:00
Ivan Leo
1644974491
quartz: Fix media type detection.
2006-06-22 12:29:03 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Thomas Weidenmueller
2b4377f5eb
quartz: Fix incorrect usages of the HRESULT_FROM_WIN32 macro.
2005-12-09 11:21:51 +01:00
Ge van Geldorp
1a1583a364
Match PSDK STATUS_* definitions.
2005-11-28 17:32:54 +01:00
Francois Gouget
6d442aeb34
Assorted spelling fixes.
2005-11-23 20:14:43 +01:00
Alexandre Julliard
738e88db5f
Replace the ICOM_THIS_From macros by inline functions.
2005-07-27 15:14:18 +00:00
Mike McCormack
bda7ace2e9
Interlocked LONG* gcc warning fixes.
2005-07-13 11:59:15 +00:00
Mike McCormack
e8c1bf3283
Make functions static, fix declarations.
2005-06-20 18:39:40 +00:00
Dmitry Timoshkov
eba47f1dfe
Make remaining OLE interface vtables const.
2005-06-06 19:50:35 +00:00
Christian Costa
623fb34acc
Fixed clock release in transform template.
...
AddRef pUnk in CopyMediaType.
Added CreateMediaType helper function and use it.
Replaced some DeleteMediaType calls to FreeMediaType to be in line
with recent changes.
Fixed IEnumMediaTypesImpl_Next.
Clear media type when initializing pins.
Added some AddRef/Release traces.
2005-06-05 19:18:34 +00:00