if (ret && gst_structure_has_field (s, "codec_data")) {
const GValue *val = gst_structure_get_value (s, "codec_data");
- if (val) {
+ if (val)
cpad->video_codec_data = gst_buffer_ref (gst_value_get_buffer (val));
- cpad->sent_codec_data = FALSE;
- } else {
- cpad->sent_codec_data = TRUE;
- }
- } else {
- cpad->sent_codec_data = TRUE;
}
gst_object_unref (mux);
if (ret && gst_structure_has_field (s, "codec_data")) {
const GValue *val = gst_structure_get_value (s, "codec_data");
- if (val) {
+ if (val)
cpad->audio_codec_data = gst_buffer_ref (gst_value_get_buffer (val));
- cpad->sent_codec_data = FALSE;
- } else {
- cpad->sent_codec_data = TRUE;
- }
- } else {
- cpad->sent_codec_data = TRUE;
}
gst_object_unref (mux);
cpad->video_codec = G_MAXUINT;
cpad->video_codec_data = NULL;
- cpad->sent_codec_data = FALSE;
-
cpad->last_timestamp = 0;
/* FIXME: hacked way to override/extend the event function of