+2005-12-16 Stefan Kost <ensonic@users.sf.net>
+
+ * ext/libvisual/visual.c: (make_valid_name):
+ change some char* into char[]
+ * gst/audiotestsrc/gstaudiotestsrc.c:
+ (gst_audio_test_src_class_init), (gst_audio_test_src_do_seek),
+ (gst_audio_test_src_create):
+ * gst/audiotestsrc/gstaudiotestsrc.h:
+ prepare to handle EOS and SEGMENT_DONE
+
2005-12-16 Tim-Philipp Müller <tim at centricular dot net>
* tests/check/generic/states.c: (GST_START_TEST):
-Subproject commit 4edc214072fe07d2aade96bc336493425654d7b4
+Subproject commit d1911d4b3d6267f9cd9dfb68fcef2afe4d098092
/*
* Replace invalid chars with _ in the type name
*/
- static const gchar *extra_chars = "-_+";
+ static const gchar extra_chars[] = "-_+";
gchar *p = name;
for (; *p; p++) {
g_assert (src->running_time <= time);
+ /*
+ if (GST_CLOCK_TIME_IS_VALID (segment->stop)) {
+ time = segment->stop;
+ src->n_samples_stop = time * src->samplerate / GST_SECOND;
+ src->check_seek_stop = true;
+ src->seek_flags = segment.flags;
+ }
+ else {
+ src->check_seek_stop = false;
+ }
+ */
+
return TRUE;
}
GST_BUFFER_TIMESTAMP (buf) = src->timestamp_offset + src->running_time;
/* offset is the number of samples */
GST_BUFFER_OFFSET (buf) = src->n_samples;
+ /*
+ if (src->check_seek_stop &&
+ (src->n_samples_stop > src->n_samples) &&
+ (src->n_samples_stop < src->n_samples + src->samples_per_buffer)) {
+ src->n_samples = src->n_samples_stop;
+ @todo: calculate only partial buffer!
+ @todo: send EOS or SEGMENT_DONE depending on segment.flags&GST_SEEK_FLAG_SEGMENT
+ }
+ else
+ */
src->n_samples += src->samples_per_buffer;
GST_BUFFER_OFFSET_END (buf) = src->n_samples;
next_time = src->n_samples * GST_SECOND / src->samplerate;
GstClockTimeDiff timestamp_offset; /* base offset */
GstClockTime running_time; /* total running time */
gint64 n_samples; /* total samples sent */
+ /*
+ gint64 n_samples_stop;
+ gboolean check_seek_stop;
+ GstSeekFlags seek_flags;
+ */
/* waveform specific context data */
GstPinkNoise pink;