summaryrefslogtreecommitdiff
path: root/ext/taglib
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-02-12 12:24:50 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-02-12 12:24:50 +0000
commit8620c16b275dd3ec955d99af77ea06d3441ff533 (patch)
treef67993cf306703216ed7bcf0c2532336fc1484a9 /ext/taglib
parent225e98d62349b94aed9e4e8158b62626ca3b1218 (diff)
downloadgstreamer-plugins-good-8620c16b275dd3ec955d99af77ea06d3441ff533.tar.gz
taglib: finish off a few missed variable changes
Local variables are now unused, and the values from the segment copy are used instead, so remove the now useless local variables and write to the segment where appropriate.
Diffstat (limited to 'ext/taglib')
-rw-r--r--ext/taglib/gsttaglibmux.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/taglib/gsttaglibmux.c b/ext/taglib/gsttaglibmux.c
index edeba8c87..bc5b61da6 100644
--- a/ext/taglib/gsttaglibmux.c
+++ b/ext/taglib/gsttaglibmux.c
@@ -235,7 +235,6 @@ static GstEvent *
gst_tag_lib_mux_adjust_event_offsets (GstTagLibMux * mux,
const GstEvent * newsegment_event)
{
- gint64 start, stop, cur;
GstSegment segment;
gst_event_copy_segment ((GstEvent *) newsegment_event, &segment);
@@ -243,11 +242,11 @@ gst_tag_lib_mux_adjust_event_offsets (GstTagLibMux * mux,
g_assert (segment.format == GST_FORMAT_BYTES);
if (segment.start != -1)
- start += mux->tag_size;
+ segment.start += mux->tag_size;
if (segment.stop != -1)
- stop += mux->tag_size;
+ segment.stop += mux->tag_size;
if (segment.time != -1)
- cur += mux->tag_size;
+ segment.time += mux->tag_size;
GST_DEBUG_OBJECT (mux, "adjusting newsegment event offsets to start=%"
G_GUINT64_FORMAT ", stop=%" G_GUINT64_FORMAT ", cur=%" G_GUINT64_FORMAT