summaryrefslogtreecommitdiffstats
path: root/gst/flv
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-06-25 08:10:38 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-06-25 08:10:38 +0200
commit67ca4c57b1309eed6c3cf1c7bc1b58be2f4f635c (patch)
tree53f08895670cc6bea55566070a4d2e823daf1a4d /gst/flv
parentff3730fb7bb2ce860816b60f9fc78e5eca98a725 (diff)
flvdemux: Remove unused variable, hint branch likeliness, add comments.
Diffstat (limited to 'gst/flv')
-rw-r--r--gst/flv/gstflvdemux.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
index 5856e7ac..4f54ec6a 100644
--- a/gst/flv/gstflvdemux.c
+++ b/gst/flv/gstflvdemux.c
@@ -468,19 +468,17 @@ gst_flv_demux_create_index (GstFLVDemux * demux)
size_t tag_size;
guint64 old_offset;
GstBuffer *buffer;
- GstFlowReturn ret;
- if (!gst_pad_query_peer_duration (demux->sinkpad, &fmt, &size) ||
- fmt != GST_FORMAT_BYTES)
+ if (G_UNLIKELY (!gst_pad_query_peer_duration (demux->sinkpad, &fmt, &size) ||
+ fmt != GST_FORMAT_BYTES))
return;
old_offset = demux->offset;
- while ((ret =
- gst_flv_demux_pull_range (demux, demux->sinkpad, demux->offset, 12,
- &buffer)) == GST_FLOW_OK) {
- if (gst_flv_parse_tag_timestamp (demux, buffer,
- &tag_size) == GST_CLOCK_TIME_NONE) {
+ while (gst_flv_demux_pull_range (demux, demux->sinkpad, demux->offset, 12,
+ &buffer) == GST_FLOW_OK) {
+ if (G_UNLIKELY (gst_flv_parse_tag_timestamp (demux, buffer,
+ &tag_size) == GST_CLOCK_TIME_NONE)) {
gst_buffer_unref (buffer);
break;
}
@@ -671,6 +669,7 @@ gst_flv_demux_handle_seek_push (GstFLVDemux * demux, GstEvent * event)
goto wrong_format;
flush = !!(flags & GST_SEEK_FLAG_FLUSH);
+ /* FIXME : the keyframe flag is never used ! */
keyframe = !!(flags & GST_SEEK_FLAG_KEY_UNIT);
/* Work on a copy until we are sure the seek succeeded. */
@@ -755,6 +754,7 @@ gst_flv_demux_handle_seek_pull (GstFLVDemux * demux, GstEvent * event)
goto wrong_format;
flush = !!(flags & GST_SEEK_FLAG_FLUSH);
+ /* FIXME : the keyframe flag is never used */
keyframe = !!(flags & GST_SEEK_FLAG_KEY_UNIT);
if (flush) {