diff options
-rw-r--r-- | ext/metadata/gstbasemetadata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/metadata/gstbasemetadata.c b/ext/metadata/gstbasemetadata.c index 4609013b..dd91b2aa 100644 --- a/ext/metadata/gstbasemetadata.c +++ b/ext/metadata/gstbasemetadata.c @@ -1151,8 +1151,8 @@ gst_base_metadata_calculate_offsets (GstBaseMetadata * base) goto done; } - metadata_chunk_array_remove_zero_size (&META_DATA_INJECT_CHUNKS (base-> - metadata)); + metadata_chunk_array_remove_zero_size (&META_DATA_INJECT_CHUNKS + (base->metadata)); metadata_lazy_update (base->metadata); @@ -1420,7 +1420,7 @@ gst_base_metadata_change_state (GstElement * element, GstStateChange transition) switch (transition) { case GST_STATE_CHANGE_PAUSED_TO_READY: gst_base_metadata_reset_streaming (filter); - if (filter->state != MT_STATE_PARSED) + if (filter->state == MT_STATE_PARSED) gst_base_metadata_reset_parsing (filter); break; default: |