mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
avidemux: rename some variable
Rename the seek_event variable to seg_event because it really contains the newsegment event that needs to be pushed.
This commit is contained in:
parent
2950423265
commit
183d450113
2 changed files with 20 additions and 20 deletions
|
@ -279,9 +279,9 @@ gst_avi_demux_reset (GstAviDemux * avi)
|
||||||
gst_object_unref (avi->element_index);
|
gst_object_unref (avi->element_index);
|
||||||
avi->element_index = NULL;
|
avi->element_index = NULL;
|
||||||
|
|
||||||
if (avi->seek_event) {
|
if (avi->seg_event) {
|
||||||
gst_event_unref (avi->seek_event);
|
gst_event_unref (avi->seg_event);
|
||||||
avi->seek_event = NULL;
|
avi->seg_event = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avi->globaltags)
|
if (avi->globaltags)
|
||||||
|
@ -3043,9 +3043,9 @@ skipping_done:
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (avi, "segment stop %" G_GINT64_FORMAT, stop);
|
GST_DEBUG_OBJECT (avi, "segment stop %" G_GINT64_FORMAT, stop);
|
||||||
|
|
||||||
if (avi->seek_event)
|
if (avi->seg_event)
|
||||||
gst_event_unref (avi->seek_event);
|
gst_event_unref (avi->seg_event);
|
||||||
avi->seek_event = gst_event_new_new_segment_full
|
avi->seg_event = gst_event_new_new_segment_full
|
||||||
(FALSE, avi->segment.rate, avi->segment.applied_rate, GST_FORMAT_TIME,
|
(FALSE, avi->segment.rate, avi->segment.applied_rate, GST_FORMAT_TIME,
|
||||||
avi->segment.start, stop, avi->segment.time);
|
avi->segment.start, stop, avi->segment.time);
|
||||||
|
|
||||||
|
@ -3517,9 +3517,9 @@ skipping_done:
|
||||||
gst_avi_demux_do_seek (avi, &avi->segment);
|
gst_avi_demux_do_seek (avi, &avi->segment);
|
||||||
|
|
||||||
/* prepare initial segment */
|
/* prepare initial segment */
|
||||||
if (avi->seek_event)
|
if (avi->seg_event)
|
||||||
gst_event_unref (avi->seek_event);
|
gst_event_unref (avi->seg_event);
|
||||||
avi->seek_event = gst_event_new_new_segment_full
|
avi->seg_event = gst_event_new_new_segment_full
|
||||||
(FALSE, avi->segment.rate, avi->segment.applied_rate, GST_FORMAT_TIME,
|
(FALSE, avi->segment.rate, avi->segment.applied_rate, GST_FORMAT_TIME,
|
||||||
avi->segment.start, stop, avi->segment.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;
|
stop = avi->segment.duration;
|
||||||
|
|
||||||
/* queue the segment event for the streaming thread. */
|
/* queue the segment event for the streaming thread. */
|
||||||
if (avi->seek_event)
|
if (avi->seg_event)
|
||||||
gst_event_unref (avi->seek_event);
|
gst_event_unref (avi->seg_event);
|
||||||
if (avi->segment.rate > 0.0) {
|
if (avi->segment.rate > 0.0) {
|
||||||
/* forwards goes from last_stop to stop */
|
/* 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.rate, avi->segment.applied_rate, avi->segment.format,
|
||||||
avi->segment.last_stop, stop, avi->segment.time);
|
avi->segment.last_stop, stop, avi->segment.time);
|
||||||
} else {
|
} else {
|
||||||
/* reverse goes from start to last_stop */
|
/* 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.rate, avi->segment.applied_rate, avi->segment.format,
|
||||||
avi->segment.start, avi->segment.last_stop, avi->segment.time);
|
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;
|
avi->state = GST_AVI_DEMUX_MOVI;
|
||||||
break;
|
break;
|
||||||
case GST_AVI_DEMUX_MOVI:
|
case GST_AVI_DEMUX_MOVI:
|
||||||
if (G_UNLIKELY (avi->seek_event)) {
|
if (G_UNLIKELY (avi->seg_event)) {
|
||||||
gst_avi_demux_push_event (avi, avi->seek_event);
|
gst_avi_demux_push_event (avi, avi->seg_event);
|
||||||
avi->seek_event = NULL;
|
avi->seg_event = NULL;
|
||||||
}
|
}
|
||||||
if (G_UNLIKELY (avi->got_tags)) {
|
if (G_UNLIKELY (avi->got_tags)) {
|
||||||
push_tag_lists (avi);
|
push_tag_lists (avi);
|
||||||
|
@ -4728,9 +4728,9 @@ gst_avi_demux_chain (GstPad * pad, GstBuffer * buf)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_AVI_DEMUX_MOVI:
|
case GST_AVI_DEMUX_MOVI:
|
||||||
if (G_UNLIKELY (avi->seek_event)) {
|
if (G_UNLIKELY (avi->seg_event)) {
|
||||||
gst_avi_demux_push_event (avi, avi->seek_event);
|
gst_avi_demux_push_event (avi, avi->seg_event);
|
||||||
avi->seek_event = NULL;
|
avi->seg_event = NULL;
|
||||||
}
|
}
|
||||||
if (G_UNLIKELY (avi->got_tags)) {
|
if (G_UNLIKELY (avi->got_tags)) {
|
||||||
push_tag_lists (avi);
|
push_tag_lists (avi);
|
||||||
|
|
|
@ -181,7 +181,7 @@ typedef struct _GstAviDemux {
|
||||||
gboolean segment_running;
|
gboolean segment_running;
|
||||||
|
|
||||||
/* pending tags/events */
|
/* pending tags/events */
|
||||||
GstEvent *seek_event;
|
GstEvent *seg_event;
|
||||||
GstTagList *globaltags;
|
GstTagList *globaltags;
|
||||||
gboolean got_tags;
|
gboolean got_tags;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue