Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
8883421b
Commit
8883421b
authored
Jun 15, 2010
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wavpackdec: Initialize uninitialized variable and don't unref it if it's NULL
parent
e49d8a28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ext/wavpack/gstwavpackdec.c
ext/wavpack/gstwavpackdec.c
+3
-2
No files found.
ext/wavpack/gstwavpackdec.c
View file @
8883421b
...
...
@@ -251,7 +251,7 @@ static GstFlowReturn
gst_wavpack_dec_chain
(
GstPad
*
pad
,
GstBuffer
*
buf
)
{
GstWavpackDec
*
dec
;
GstBuffer
*
outbuf
;
GstBuffer
*
outbuf
=
NULL
;
GstFlowReturn
ret
=
GST_FLOW_OK
;
WavpackHeader
wph
;
int32_t
decoded
,
unpacked_size
;
...
...
@@ -422,7 +422,8 @@ decode_error:
}
GST_ELEMENT_ERROR
(
dec
,
STREAM
,
DECODE
,
(
NULL
),
(
"Failed to decode wavpack stream: %s"
,
reason
));
gst_buffer_unref
(
outbuf
);
if
(
outbuf
)
gst_buffer_unref
(
outbuf
);
gst_buffer_unref
(
buf
);
return
GST_FLOW_ERROR
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment