projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c4d55cf
)
flvdemux: Fix unitialized variables
author
Edward Hervey
<bilboed@bilboed.com>
Thu, 11 Mar 2010 16:03:05 +0000
(17:03 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Thu, 11 Mar 2010 16:04:41 +0000
(17:04 +0100)
gst/flv/gstflvdemux.c
patch
|
blob
|
history
diff --git
a/gst/flv/gstflvdemux.c
b/gst/flv/gstflvdemux.c
index
7f3fe99
..
f152bcb
100644
(file)
--- a/
gst/flv/gstflvdemux.c
+++ b/
gst/flv/gstflvdemux.c
@@
-635,7
+635,7
@@
exit:
static gint64
gst_flv_demux_get_metadata (GstFLVDemux * demux)
{
static gint64
gst_flv_demux_get_metadata (GstFLVDemux * demux)
{
- gint64 ret, offset;
+ gint64 ret
= 0
, offset;
GstFormat fmt = GST_FORMAT_BYTES;
size_t tag_size, size;
GstBuffer *buffer = NULL;
GstFormat fmt = GST_FORMAT_BYTES;
size_t tag_size, size;
GstBuffer *buffer = NULL;
@@
-969,7
+969,7
@@
static gboolean
gst_flv_demux_handle_seek_push (GstFLVDemux * demux, GstEvent * event)
{
if (!demux->indexed) {
gst_flv_demux_handle_seek_push (GstFLVDemux * demux, GstEvent * event)
{
if (!demux->indexed) {
- guint64 seek_offset;
+ guint64 seek_offset
= 0
;
gboolean building_index;
GstFormat fmt;
gboolean building_index;
GstFormat fmt;
@@
-1032,7
+1032,7
@@
gst_flv_demux_handle_seek_pull (GstFLVDemux * demux, GstEvent * event,
GstSeekType start_type, stop_type;
gint64 start, stop;
gdouble rate;
GstSeekType start_type, stop_type;
gint64 start, stop;
gdouble rate;
- gboolean update, flush, keyframe, ret;
+ gboolean update, flush, keyframe, ret
= FALSE
;
GstSegment seeksegment;
gst_event_parse_seek (event, &rate, &format, &flags,
GstSegment seeksegment;
gst_event_parse_seek (event, &rate, &format, &flags,
@@
-1199,7
+1199,7
@@
wrong_format:
{
GST_WARNING_OBJECT (demux, "we only support seeking in TIME format");
gst_event_unref (event);
{
GST_WARNING_OBJECT (demux, "we only support seeking in TIME format");
gst_event_unref (event);
- return
FALSE
;
+ return
ret
;
}
}
}
}