From: Wim Taymans Date: Wed, 20 Jan 2010 10:22:04 +0000 (+0100) Subject: avidemux: rename some variable X-Git-Tag: 1.19.3~509^2~9234 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=183d450113b62ade92064ac46c5b9cc99157b8ce;p=platform%2Fupstream%2Fgstreamer.git avidemux: rename some variable Rename the seek_event variable to seg_event because it really contains the newsegment event that needs to be pushed. --- diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index a369795..222dd40 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -279,9 +279,9 @@ gst_avi_demux_reset (GstAviDemux * avi) gst_object_unref (avi->element_index); avi->element_index = NULL; - if (avi->seek_event) { - gst_event_unref (avi->seek_event); - avi->seek_event = NULL; + if (avi->seg_event) { + gst_event_unref (avi->seg_event); + avi->seg_event = NULL; } if (avi->globaltags) @@ -3043,9 +3043,9 @@ skipping_done: GST_DEBUG_OBJECT (avi, "segment stop %" G_GINT64_FORMAT, stop); - if (avi->seek_event) - gst_event_unref (avi->seek_event); - avi->seek_event = gst_event_new_new_segment_full + if (avi->seg_event) + gst_event_unref (avi->seg_event); + avi->seg_event = gst_event_new_new_segment_full (FALSE, avi->segment.rate, avi->segment.applied_rate, GST_FORMAT_TIME, avi->segment.start, stop, avi->segment.time); @@ -3517,9 +3517,9 @@ skipping_done: gst_avi_demux_do_seek (avi, &avi->segment); /* prepare initial segment */ - if (avi->seek_event) - gst_event_unref (avi->seek_event); - avi->seek_event = gst_event_new_new_segment_full + if (avi->seg_event) + gst_event_unref (avi->seg_event); + avi->seg_event = gst_event_new_new_segment_full (FALSE, avi->segment.rate, avi->segment.applied_rate, GST_FORMAT_TIME, avi->segment.start, stop, avi->segment.time); @@ -3834,16 +3834,16 @@ gst_avi_demux_handle_seek (GstAviDemux * avi, GstPad * pad, GstEvent * event) stop = avi->segment.duration; /* queue the segment event for the streaming thread. */ - if (avi->seek_event) - gst_event_unref (avi->seek_event); + if (avi->seg_event) + gst_event_unref (avi->seg_event); if (avi->segment.rate > 0.0) { /* forwards goes from last_stop to stop */ - avi->seek_event = gst_event_new_new_segment_full (FALSE, + avi->seg_event = gst_event_new_new_segment_full (FALSE, avi->segment.rate, avi->segment.applied_rate, avi->segment.format, avi->segment.last_stop, stop, avi->segment.time); } else { /* reverse goes from start to last_stop */ - avi->seek_event = gst_event_new_new_segment_full (FALSE, + avi->seg_event = gst_event_new_new_segment_full (FALSE, avi->segment.rate, avi->segment.applied_rate, avi->segment.format, avi->segment.start, avi->segment.last_stop, avi->segment.time); } @@ -4638,9 +4638,9 @@ gst_avi_demux_loop (GstPad * pad) avi->state = GST_AVI_DEMUX_MOVI; break; case GST_AVI_DEMUX_MOVI: - if (G_UNLIKELY (avi->seek_event)) { - gst_avi_demux_push_event (avi, avi->seek_event); - avi->seek_event = NULL; + if (G_UNLIKELY (avi->seg_event)) { + gst_avi_demux_push_event (avi, avi->seg_event); + avi->seg_event = NULL; } if (G_UNLIKELY (avi->got_tags)) { push_tag_lists (avi); @@ -4728,9 +4728,9 @@ gst_avi_demux_chain (GstPad * pad, GstBuffer * buf) } break; case GST_AVI_DEMUX_MOVI: - if (G_UNLIKELY (avi->seek_event)) { - gst_avi_demux_push_event (avi, avi->seek_event); - avi->seek_event = NULL; + if (G_UNLIKELY (avi->seg_event)) { + gst_avi_demux_push_event (avi, avi->seg_event); + avi->seg_event = NULL; } if (G_UNLIKELY (avi->got_tags)) { push_tag_lists (avi); diff --git a/gst/avi/gstavidemux.h b/gst/avi/gstavidemux.h index 60b8f3b..4bd8330 100644 --- a/gst/avi/gstavidemux.h +++ b/gst/avi/gstavidemux.h @@ -181,7 +181,7 @@ typedef struct _GstAviDemux { gboolean segment_running; /* pending tags/events */ - GstEvent *seek_event; + GstEvent *seg_event; GstTagList *globaltags; gboolean got_tags;