mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Fix event problem.
Original commit message from CVS: Fix event problem.
This commit is contained in:
parent
05abb281a9
commit
b482dd1ab1
1 changed files with 4 additions and 1 deletions
|
@ -689,6 +689,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer)
|
|||
gint64 value = GST_EVENT_DISCONT_OFFSET (event, i).value;
|
||||
gint64 time;
|
||||
GstFormat format;
|
||||
GstEvent *new_event;
|
||||
|
||||
/* see how long the input bytes take */
|
||||
format = GST_FORMAT_TIME;
|
||||
|
@ -702,7 +703,8 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer)
|
|||
mad->base_time = time;
|
||||
|
||||
gst_event_free (event);
|
||||
event = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME, time, NULL);
|
||||
new_event = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME, time, NULL);
|
||||
gst_pad_event_default (pad, new_event);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -710,6 +712,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer)
|
|||
mad->tempsize = 0;
|
||||
/* we don't need to restart when we get here */
|
||||
mad->restart = FALSE;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
gst_pad_event_default (pad, event);
|
||||
|
|
Loading…
Reference in a new issue