GST_CLOCK_TIME_NONE;
GST_BASE_VIDEO_CODEC (base_video_decoder)->proportion = 0.5;
gst_segment_init (&GST_BASE_VIDEO_CODEC (base_video_decoder)->segment,
- GST_FORMAT_TIME);
+ GST_FORMAT_UNDEFINED);
GST_OBJECT_UNLOCK (base_video_decoder);
}
default:
base_video_decoder->timestamp_offset = GST_CLOCK_TIME_NONE;
GST_BASE_VIDEO_CODEC (base_video_decoder)->system_frame_number = 0;
- base_video_decoder->presentation_frame_number = 0;
base_video_decoder->base_picture_number = 0;
base_video_decoder->last_timestamp = GST_CLOCK_TIME_NONE;
* requiring the pad to be negotiated makes it impossible to use
* oggdemux or filesrc ! decoder */
- if (!base_video_decoder->have_segment) {
+ if (GST_BASE_VIDEO_CODEC (base_video_decoder)->segment.format ==
+ GST_FORMAT_UNDEFINED) {
GstEvent *event;
GstFlowReturn ret;
gst_segment_set_newsegment_full (&GST_BASE_VIDEO_CODEC
(base_video_decoder)->segment, FALSE, 1.0, 1.0, GST_FORMAT_TIME, 0,
GST_CLOCK_TIME_NONE, 0);
- base_video_decoder->have_segment = TRUE;
event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, 0,
GST_CLOCK_TIME_NONE, 0);
}
base_video_decoder->input_offset += GST_BUFFER_SIZE (buf);
-#if 0
- if (base_video_decoder->timestamp_offset == GST_CLOCK_TIME_NONE &&
- GST_BUFFER_TIMESTAMP (buf) != GST_CLOCK_TIME_NONE) {
- GST_DEBUG ("got new offset %" GST_TIME_FORMAT,
- GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
- base_video_decoder->timestamp_offset = GST_BUFFER_TIMESTAMP (buf);
- }
-#endif
-
if (base_video_decoder->packetized) {
base_video_decoder->current_frame->sink_buffer = buf;
base_video_decoder_class->stop (base_video_decoder);
}
gst_segment_init (&GST_BASE_VIDEO_CODEC (base_video_decoder)->segment,
- GST_FORMAT_TIME);
+ GST_FORMAT_UNDEFINED);
g_list_foreach (base_video_decoder->timestamps, (GFunc) g_free, NULL);
g_list_free (base_video_decoder->timestamps);
base_video_decoder->timestamps = NULL;
gboolean sink_clipping;
gboolean do_byte_time;
- guint64 presentation_frame_number;
-
gboolean have_src_caps;
GstVideoFrame *current_frame;
int distance_from_sync;
int reorder_depth;
- GstClockTime buffer_timestamp;
-
GstClockTime timestamp_offset;
- //GstBuffer *codec_data;
-
guint64 input_offset;
guint64 frame_offset;
GstClockTime last_timestamp;
int field_index;
- gboolean is_delta_unit;
gboolean packetized;
GList *timestamps;
- gboolean have_segment;
/* FIXME before moving to base */
void *padding[GST_PADDING_LARGE];