if (!stream_pos->packet_real_index)
goto error;
+ if (stream_pos->packet_real_index->len <= 0)
+ continue;
+
if (type == BT_CLOCK_REAL) {
index = &g_array_index(stream_pos->packet_real_index,
struct packet_index,
if (!stream_pos->packet_real_index)
goto error;
+ if (stream_pos->packet_real_index->len <= 0)
+ continue;
+
if (type == BT_CLOCK_REAL) {
index = &g_array_index(stream_pos->packet_real_index,
struct packet_index,
if (ret)
goto error_index;
+ /*
+ * For now, only a single slock is supported.
+ */
+ file_stream->parent.current_clock = td->single_clock;
+
/* Add stream file to stream class */
g_ptr_array_add(file_stream->parent.stream_class->streams,
&file_stream->parent);
stream_pos->packet_real_index = g_array_new(FALSE, TRUE,
sizeof(struct packet_index));
+ if (!stream_pos->packet_cycles_index)
+ continue;
+
for (k = 0; k < stream_pos->packet_cycles_index->len; k++) {
struct packet_index *index;
struct packet_index new_index;