guint32 subtype;
GstCaps *caps;
guint32 fourcc;
+ gboolean sparse;
gboolean new_caps;
gboolean new_stream; /* signals that a stream_start is required */
stream->sample_index = -1;
stream->stbl_index = -1;
stream->n_samples = 0;
+ stream->sparse = FALSE;
}
static void
if (stream->new_stream) {
gchar *stream_id;
GstEvent *event;
+ GstStreamFlags stream_flags;
stream->new_stream = FALSE;
stream_id =
gst_pad_create_stream_id_printf (stream->pad,
GST_ELEMENT_CAST (qtdemux), "%03u", stream->track_id);
event = gst_event_new_stream_start (stream_id);
- if (stream->disabled) {
- gst_event_set_stream_flags (event, GST_STREAM_FLAG_UNSELECT);
- }
- gst_pad_push_event (stream->pad, gst_event_new_stream_start (stream_id));
+ stream_flags = GST_STREAM_FLAG_NONE;
+ if (stream->disabled)
+ stream_flags |= GST_STREAM_FLAG_UNSELECT;
+ if (stream->sparse)
+ stream_flags |= GST_STREAM_FLAG_SPARSE;
+ gst_event_set_stream_flags (event, stream_flags);
+ gst_pad_push_event (stream->pad, event);
g_free (stream_id);
}
gst_pad_set_caps (stream->pad, stream->caps);
|| stream->subtype == FOURCC_sbtl) {
stream->sampled = TRUE;
+ stream->sparse = TRUE;
offset = 16;
default:
break;
}
+ GST_INFO_OBJECT (qtdemux,
+ "type %" GST_FOURCC_FORMAT " caps %" GST_PTR_FORMAT,
+ GST_FOURCC_ARGS (fourcc), stream->caps);
+
} else {
/* everything in 1 sample */
stream->sampled = TRUE;