Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
5a4ecc5b
Commit
5a4ecc5b
authored
Jun 15, 2010
by
Sebastian Dröge
Browse files
flacenc: Fix NEWSEGMENT parsing logic and don't use uninitialized variables
parent
34254332
Changes
1
Hide whitespace changes
Inline
Side-by-side
ext/flac/gstflacenc.c
View file @
5a4ecc5b
...
...
@@ -1064,8 +1064,10 @@ gst_flac_enc_sink_event (GstPad * pad, GstEvent * event)
&
stream_time
);
}
else
{
start
=
-
1
;
stream_time
=
-
1
;
}
if
(
start
!=
0
)
{
if
(
start
>
0
)
{
if
(
flacenc
->
offset
>
0
)
GST_DEBUG
(
"Not handling mid-stream newsegment event"
);
else
...
...
@@ -1076,9 +1078,11 @@ gst_flac_enc_sink_event (GstPad * pad, GstEvent * event)
ret
=
gst_pad_push_event
(
flacenc
->
srcpad
,
e
);
}
if
(
stream_time
!=
0
)
{
if
(
stream_time
>
0
)
{
GST_DEBUG
(
"Not handling non-zero stream time"
);
}
gst_event_unref
(
event
);
/* don't push it downstream, we'll generate our own via seek to 0 */
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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