mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 970271: Fix GCC warnings about uninitialized variables, r=jduell.mcbugs
This commit is contained in:
parent
061c19e139
commit
2650d61350
@ -107,7 +107,7 @@ nsAboutBloat::NewChannel(nsIURI *aURI, nsIChannel **result)
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
||||
nsIChannel* channel;
|
||||
nsIChannel* channel = nullptr;
|
||||
rv = NS_NewInputStreamChannel(&channel, aURI, inStr,
|
||||
NS_LITERAL_CSTRING("text/plain"),
|
||||
NS_LITERAL_CSTRING("utf-8"));
|
||||
|
@ -153,14 +153,15 @@ RtspControllerParent::OnMediaDataAvailable(uint8_t index,
|
||||
uint32_t int32Value;
|
||||
uint64_t int64Value;
|
||||
|
||||
nsresult rv = meta->GetTimeStamp(&int64Value);
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
|
||||
|
||||
LOG(("RtspControllerParent:: OnMediaDataAvailable %d:%d time %lld",
|
||||
index, length, int64Value));
|
||||
|
||||
// Serialize meta data.
|
||||
nsCString name;
|
||||
name.AssignLiteral("TIMESTAMP");
|
||||
nsresult rv = meta->GetTimeStamp(&int64Value);
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
|
||||
InfallibleTArray<RtspMetadataParam> metaData;
|
||||
metaData.AppendElement(RtspMetadataParam(name, int64Value));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user