quartz: Sign-compare warnings fix.
This commit is contained in:
parent
df17fcdafb
commit
a19ff5f07b
|
@ -168,7 +168,7 @@ static ULONG WINAPI IEnumMediaTypesImpl_Release(IEnumMediaTypes * iface)
|
||||||
|
|
||||||
if (!refCount)
|
if (!refCount)
|
||||||
{
|
{
|
||||||
int i;
|
ULONG i;
|
||||||
for (i = 0; i < This->enumMediaDetails.cMediaTypes; i++)
|
for (i = 0; i < This->enumMediaDetails.cMediaTypes; i++)
|
||||||
if (This->enumMediaDetails.pMediaTypes[i].pbFormat)
|
if (This->enumMediaDetails.pMediaTypes[i].pbFormat)
|
||||||
CoTaskMemFree(This->enumMediaDetails.pMediaTypes[i].pbFormat);
|
CoTaskMemFree(This->enumMediaDetails.pMediaTypes[i].pbFormat);
|
||||||
|
|
|
@ -1025,7 +1025,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
|
||||||
hr = GetInternalConnections(pfilter, ppinfilter, &ppins, &nb);
|
hr = GetInternalConnections(pfilter, ppinfilter, &ppins, &nb);
|
||||||
|
|
||||||
if (SUCCEEDED(hr)) {
|
if (SUCCEEDED(hr)) {
|
||||||
int i;
|
unsigned int i;
|
||||||
if (nb == 0) {
|
if (nb == 0) {
|
||||||
IPin_Disconnect(ppinfilter);
|
IPin_Disconnect(ppinfilter);
|
||||||
IPin_Disconnect(ppinOut);
|
IPin_Disconnect(ppinOut);
|
||||||
|
@ -1036,7 +1036,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
|
||||||
{
|
{
|
||||||
LPWSTR pinname = NULL;
|
LPWSTR pinname = NULL;
|
||||||
|
|
||||||
TRACE("Processing pin %d\n", i);
|
TRACE("Processing pin %u\n", i);
|
||||||
|
|
||||||
hr = IPin_QueryId(ppins[i], &pinname);
|
hr = IPin_QueryId(ppins[i], &pinname);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
#include "quartz_private.h"
|
#include "quartz_private.h"
|
||||||
|
#include "wine/unicode.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(quartz);
|
WINE_DEFAULT_DEBUG_CHANNEL(quartz);
|
||||||
|
|
||||||
|
@ -280,7 +281,7 @@ LONG WINAPI DBToAmpFactor(LONG db)
|
||||||
*/
|
*/
|
||||||
DWORD WINAPI AMGetErrorTextA(HRESULT hr, LPSTR buffer, DWORD maxlen)
|
DWORD WINAPI AMGetErrorTextA(HRESULT hr, LPSTR buffer, DWORD maxlen)
|
||||||
{
|
{
|
||||||
int len;
|
unsigned int len;
|
||||||
static const char format[] = "Error: 0x%x";
|
static const char format[] = "Error: 0x%x";
|
||||||
char error[MAX_ERROR_TEXT_LEN];
|
char error[MAX_ERROR_TEXT_LEN];
|
||||||
|
|
||||||
|
@ -288,7 +289,7 @@ DWORD WINAPI AMGetErrorTextA(HRESULT hr, LPSTR buffer, DWORD maxlen)
|
||||||
|
|
||||||
if (!buffer) return 0;
|
if (!buffer) return 0;
|
||||||
wsprintfA(error, format, hr);
|
wsprintfA(error, format, hr);
|
||||||
if ((len = lstrlenA(error)) >= maxlen) return 0;
|
if ((len = strlen(error)) >= maxlen) return 0;
|
||||||
lstrcpyA(buffer, error);
|
lstrcpyA(buffer, error);
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
@ -298,7 +299,7 @@ DWORD WINAPI AMGetErrorTextA(HRESULT hr, LPSTR buffer, DWORD maxlen)
|
||||||
*/
|
*/
|
||||||
DWORD WINAPI AMGetErrorTextW(HRESULT hr, LPWSTR buffer, DWORD maxlen)
|
DWORD WINAPI AMGetErrorTextW(HRESULT hr, LPWSTR buffer, DWORD maxlen)
|
||||||
{
|
{
|
||||||
int len;
|
unsigned int len;
|
||||||
static const WCHAR format[] = {'E','r','r','o','r',':',' ','0','x','%','l','x',0};
|
static const WCHAR format[] = {'E','r','r','o','r',':',' ','0','x','%','l','x',0};
|
||||||
WCHAR error[MAX_ERROR_TEXT_LEN];
|
WCHAR error[MAX_ERROR_TEXT_LEN];
|
||||||
|
|
||||||
|
@ -306,7 +307,7 @@ DWORD WINAPI AMGetErrorTextW(HRESULT hr, LPWSTR buffer, DWORD maxlen)
|
||||||
|
|
||||||
if (!buffer) return 0;
|
if (!buffer) return 0;
|
||||||
wsprintfW(error, format, hr);
|
wsprintfW(error, format, hr);
|
||||||
if ((len = lstrlenW(error)) >= maxlen) return 0;
|
if ((len = strlenW(error)) >= maxlen) return 0;
|
||||||
lstrcpyW(buffer, error);
|
lstrcpyW(buffer, error);
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
|
@ -286,7 +286,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample,
|
||||||
|
|
||||||
if (BYTES_FROM_MEDIATIME(tStop) >= This->EndOfFile || This->position >= This->Parser.mediaSeeking.llStop)
|
if (BYTES_FROM_MEDIATIME(tStop) >= This->EndOfFile || This->position >= This->Parser.mediaSeeking.llStop)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
TRACE("End of file reached\n");
|
TRACE("End of file reached\n");
|
||||||
|
|
||||||
|
@ -301,7 +301,7 @@ static HRESULT MPEGSplitter_process_sample(LPVOID iface, IMediaSample * pSample,
|
||||||
IPin_Release(ppin);
|
IPin_Release(ppin);
|
||||||
}
|
}
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
WARN("Error sending EndOfStream to pin %d (%x)\n", i, hr);
|
WARN("Error sending EndOfStream to pin %u (%x)\n", i, hr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Force the pullpin thread to stop */
|
/* Force the pullpin thread to stop */
|
||||||
|
|
|
@ -219,7 +219,7 @@ HRESULT WINAPI Parser_Stop(IBaseFilter * iface)
|
||||||
{
|
{
|
||||||
ParserImpl *This = (ParserImpl *)iface;
|
ParserImpl *This = (ParserImpl *)iface;
|
||||||
PullPin *pin = (PullPin *)This->ppPins[0];
|
PullPin *pin = (PullPin *)This->ppPins[0];
|
||||||
int i;
|
ULONG i;
|
||||||
|
|
||||||
TRACE("()\n");
|
TRACE("()\n");
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ HRESULT WINAPI Parser_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
|
||||||
ParserImpl *This = (ParserImpl *)iface;
|
ParserImpl *This = (ParserImpl *)iface;
|
||||||
PullPin *pin = (PullPin *)This->ppPins[0];
|
PullPin *pin = (PullPin *)This->ppPins[0];
|
||||||
|
|
||||||
int i;
|
ULONG i;
|
||||||
|
|
||||||
TRACE("(%s)\n", wine_dbgstr_longlong(tStart));
|
TRACE("(%s)\n", wine_dbgstr_longlong(tStart));
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample, DWORD_PTR
|
||||||
|
|
||||||
if (tStop >= This->EndOfFile || (bytepos_to_duration(This, tStop) >= This->Parser.mediaSeeking.llStop) || hr == VFW_E_NOT_CONNECTED)
|
if (tStop >= This->EndOfFile || (bytepos_to_duration(This, tStop) >= This->Parser.mediaSeeking.llStop) || hr == VFW_E_NOT_CONNECTED)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
TRACE("End of file reached\n");
|
TRACE("End of file reached\n");
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample, DWORD_PTR
|
||||||
IPin* ppin;
|
IPin* ppin;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("Send End Of Stream to output pin %d\n", i);
|
TRACE("Send End Of Stream to output pin %u\n", i);
|
||||||
|
|
||||||
hr = IPin_ConnectedTo(This->Parser.ppPins[i+1], &ppin);
|
hr = IPin_ConnectedTo(This->Parser.ppPins[i+1], &ppin);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
|
|
Loading…
Reference in New Issue