mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:28:47 +00:00
qcap: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7ae2a7cbcd
commit
ab234b5446
|
@ -371,9 +371,6 @@ static HRESULT match_smart_tee_pin(CaptureGraphImpl *This,
|
||||||
IUnknown *pSource,
|
IUnknown *pSource,
|
||||||
IPin **source_out)
|
IPin **source_out)
|
||||||
{
|
{
|
||||||
static const WCHAR inputW[] = {'I','n','p','u','t',0};
|
|
||||||
static const WCHAR captureW[] = {'C','a','p','t','u','r','e',0};
|
|
||||||
static const WCHAR previewW[] = {'P','r','e','v','i','e','w',0};
|
|
||||||
IPin *capture = NULL;
|
IPin *capture = NULL;
|
||||||
IPin *preview = NULL;
|
IPin *preview = NULL;
|
||||||
IPin *peer = NULL;
|
IPin *peer = NULL;
|
||||||
|
@ -439,7 +436,7 @@ static HRESULT match_smart_tee_pin(CaptureGraphImpl *This,
|
||||||
hr = IGraphBuilder_AddFilter(This->mygraph, smartTee, NULL);
|
hr = IGraphBuilder_AddFilter(This->mygraph, smartTee, NULL);
|
||||||
if (SUCCEEDED(hr)) {
|
if (SUCCEEDED(hr)) {
|
||||||
IPin *smartTeeInput = NULL;
|
IPin *smartTeeInput = NULL;
|
||||||
hr = IBaseFilter_FindPin(smartTee, inputW, &smartTeeInput);
|
hr = IBaseFilter_FindPin(smartTee, L"Input", &smartTeeInput);
|
||||||
if (SUCCEEDED(hr)) {
|
if (SUCCEEDED(hr)) {
|
||||||
hr = IGraphBuilder_ConnectDirect(This->mygraph, capture, smartTeeInput, NULL);
|
hr = IGraphBuilder_ConnectDirect(This->mygraph, capture, smartTeeInput, NULL);
|
||||||
IPin_Release(smartTeeInput);
|
IPin_Release(smartTeeInput);
|
||||||
|
@ -456,9 +453,9 @@ static HRESULT match_smart_tee_pin(CaptureGraphImpl *This,
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
if (IsEqualIID(pCategory, &PIN_CATEGORY_CAPTURE))
|
if (IsEqualIID(pCategory, &PIN_CATEGORY_CAPTURE))
|
||||||
hr = IBaseFilter_FindPin(smartTee, captureW, source_out);
|
hr = IBaseFilter_FindPin(smartTee, L"Capture", source_out);
|
||||||
else {
|
else {
|
||||||
hr = IBaseFilter_FindPin(smartTee, previewW, source_out);
|
hr = IBaseFilter_FindPin(smartTee, L"Preview", source_out);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
hr = VFW_S_NOPREVIEWPIN;
|
hr = VFW_S_NOPREVIEWPIN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue