mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 12:02:27 +00:00
ChangeLog: Add missing newline.
Original commit message from CVS: * ChangeLog: Add missing newline. * gst/librfb/rfbdecoder.c: Fix the build (missing stdlib.h). * gst/spectrum/gstspectrum.c: * gst/spectrum/gstspectrum.h: Use basetransform segment so that it is correctly managed on flushes and start/stop. Report message timestamp as stream time, which is what an application can understand. (Yes these are adapted from wim recent level element changes)
This commit is contained in:
parent
216f6e0593
commit
098c8faefb
2 changed files with 1 additions and 19 deletions
|
@ -358,7 +358,6 @@ gst_spectrum_start (GstBaseTransform * trans)
|
|||
memset (filter->spect_magnitude, 0, filter->bands * sizeof (gfloat));
|
||||
if (filter->spect_phase)
|
||||
memset (filter->spect_phase, 0, filter->bands * sizeof (gfloat));
|
||||
gst_segment_init (&filter->segment, GST_FORMAT_UNDEFINED);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -383,22 +382,6 @@ gst_spectrum_event (GstBaseTransform * trans, GstEvent * event)
|
|||
case GST_EVENT_EOS:
|
||||
gst_adapter_clear (filter->adapter);
|
||||
break;
|
||||
case GST_EVENT_NEWSEGMENT:{
|
||||
GstFormat format;
|
||||
gdouble rate, arate;
|
||||
gint64 start, stop, time;
|
||||
gboolean update;
|
||||
|
||||
/* the newsegment values are used to clip the input samples
|
||||
* and to convert the incomming timestamps to running time */
|
||||
gst_event_parse_new_segment_full (event, &update, &rate, &arate, &format,
|
||||
&start, &stop, &time);
|
||||
|
||||
/* now configure the values */
|
||||
gst_segment_set_newsegment_full (&filter->segment, update,
|
||||
rate, arate, format, start, stop, time);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -633,7 +616,7 @@ gst_spectrum_transform_ip (GstBaseTransform * trans, GstBuffer * in)
|
|||
gint nfft = 2 * spectrum->bands - 2;
|
||||
|
||||
GstClockTime endtime =
|
||||
gst_segment_to_running_time (&spectrum->segment, GST_FORMAT_TIME,
|
||||
gst_segment_to_running_time (&trans->segment, GST_FORMAT_TIME,
|
||||
GST_BUFFER_TIMESTAMP (in));
|
||||
GstClockTime blktime = GST_FRAMES_TO_CLOCK_TIME (nfft, rate);
|
||||
|
||||
|
|
|
@ -48,7 +48,6 @@ struct _GstSpectrum {
|
|||
|
||||
GstPad *sinkpad,*srcpad;
|
||||
GstAdapter *adapter;
|
||||
GstSegment segment;
|
||||
|
||||
/* properties */
|
||||
gboolean message; /* whether or not to post messages */
|
||||
|
|
Loading…
Reference in a new issue