Lines Matching refs:mux
128 static GstFlowReturn gst_flv_mux_write_eos (GstFlvMux * mux);
129 static GstFlowReturn gst_flv_mux_write_header (GstFlvMux * mux);
130 static GstFlowReturn gst_flv_mux_rewrite_header (GstFlvMux * mux);
131 static gboolean gst_flv_mux_are_all_pads_eos (GstFlvMux * mux);
267 gst_flv_mux_init (GstFlvMux * mux) in gst_flv_mux_init() argument
269 mux->srcpad = GST_AGGREGATOR_CAST (mux)->srcpad; in gst_flv_mux_init()
272 mux->streamable = DEFAULT_STREAMABLE; in gst_flv_mux_init()
273 mux->metadatacreator = g_strdup (DEFAULT_METADATACREATOR); in gst_flv_mux_init()
274 mux->encoder = g_strdup (DEFAULT_METADATACREATOR); in gst_flv_mux_init()
276 mux->new_tags = FALSE; in gst_flv_mux_init()
278 gst_flv_mux_reset (GST_ELEMENT (mux)); in gst_flv_mux_init()
284 GstFlvMux *mux = GST_FLV_MUX (object); in gst_flv_mux_finalize() local
287 g_free (mux->metadatacreator); in gst_flv_mux_finalize()
288 g_free (mux->encoder); in gst_flv_mux_finalize()
323 GstFlvMux *mux = GST_FLV_MUX (element); in gst_flv_mux_reset() local
325 g_list_foreach (mux->index, (GFunc) gst_flv_mux_index_entry_free, NULL); in gst_flv_mux_reset()
326 g_list_free (mux->index); in gst_flv_mux_reset()
327 mux->index = NULL; in gst_flv_mux_reset()
328 mux->byte_count = 0; in gst_flv_mux_reset()
330 mux->duration = GST_CLOCK_TIME_NONE; in gst_flv_mux_reset()
331 mux->new_tags = FALSE; in gst_flv_mux_reset()
332 mux->first_timestamp = GST_CLOCK_STIME_NONE; in gst_flv_mux_reset()
333 mux->last_dts = 0; in gst_flv_mux_reset()
335 mux->state = GST_FLV_MUX_STATE_HEADER; in gst_flv_mux_reset()
336 mux->sent_header = FALSE; in gst_flv_mux_reset()
339 gst_tag_setter_reset_tags (GST_TAG_SETTER (mux)); in gst_flv_mux_reset()
346 gst_flv_mux_store_codec_tags (GstFlvMux * mux, in gst_flv_mux_store_codec_tags() argument
352 GST_DEBUG_OBJECT (mux, "Stored bitrate for pad %" GST_PTR_FORMAT " = %u", in gst_flv_mux_store_codec_tags()
361 GstFlvMux *mux = GST_FLV_MUX (aggregator); in gst_flv_mux_sink_event() local
372 if (mux->video_pad == flvpad) { in gst_flv_mux_sink_event()
374 } else if (mux->audio_pad == flvpad) { in gst_flv_mux_sink_event()
383 GstTagSetter *setter = GST_TAG_SETTER (mux); in gst_flv_mux_sink_event()
388 gst_flv_mux_store_codec_tags (mux, flvpad, list); in gst_flv_mux_sink_event()
389 mux->new_tags = TRUE; in gst_flv_mux_sink_event()
407 GstFlvMux *mux = GST_FLV_MUX (gst_pad_get_parent (pad)); in gst_flv_mux_video_pad_setcaps() local
442 if (ret && mux->streamable && mux->state != GST_FLV_MUX_STATE_HEADER) { in gst_flv_mux_video_pad_setcaps()
461 mux->state = GST_FLV_MUX_STATE_HEADER; in gst_flv_mux_video_pad_setcaps()
467 gst_object_unref (mux); in gst_flv_mux_video_pad_setcaps()
475 GstFlvMux *mux = GST_FLV_MUX (gst_pad_get_parent (pad)); in gst_flv_mux_audio_pad_setcaps() local
620 if (ret && mux->streamable && mux->state != GST_FLV_MUX_STATE_HEADER) { in gst_flv_mux_audio_pad_setcaps()
640 mux->state = GST_FLV_MUX_STATE_HEADER; in gst_flv_mux_audio_pad_setcaps()
646 gst_object_unref (mux); in gst_flv_mux_audio_pad_setcaps()
674 GstFlvMux *mux = GST_FLV_MUX (agg); in gst_flv_mux_create_new_pad() local
679 if (mux->state != GST_FLV_MUX_STATE_HEADER) { in gst_flv_mux_create_new_pad()
680 GST_WARNING_OBJECT (mux, "Can't request pads after writing header"); in gst_flv_mux_create_new_pad()
685 if (mux->audio_pad) { in gst_flv_mux_create_new_pad()
686 GST_WARNING_OBJECT (mux, "Already have an audio pad"); in gst_flv_mux_create_new_pad()
692 if (mux->video_pad) { in gst_flv_mux_create_new_pad()
693 GST_WARNING_OBJECT (mux, "Already have a video pad"); in gst_flv_mux_create_new_pad()
699 GST_WARNING_OBJECT (mux, "Invalid template"); in gst_flv_mux_create_new_pad()
714 mux->video_pad = pad; in gst_flv_mux_create_new_pad()
716 mux->audio_pad = pad; in gst_flv_mux_create_new_pad()
724 GstFlvMux *mux = GST_FLV_MUX (element); in gst_flv_mux_release_pad() local
730 if (flvpad == mux->video_pad) { in gst_flv_mux_release_pad()
731 mux->video_pad = NULL; in gst_flv_mux_release_pad()
732 } else if (flvpad == mux->audio_pad) { in gst_flv_mux_release_pad()
733 mux->audio_pad = NULL; in gst_flv_mux_release_pad()
742 gst_flv_mux_push (GstFlvMux * mux, GstBuffer * buffer) in gst_flv_mux_push() argument
744 GstAggregator *agg = GST_AGGREGATOR (mux); in gst_flv_mux_push()
752 mux->byte_count += gst_buffer_get_size (buffer); in gst_flv_mux_push()
754 return gst_aggregator_finish_buffer (GST_AGGREGATOR_CAST (mux), buffer); in gst_flv_mux_push()
758 gst_flv_mux_create_header (GstFlvMux * mux) in gst_flv_mux_create_header() argument
772 have_audio = (mux->audio_pad && mux->audio_pad->codec != G_MAXUINT); in gst_flv_mux_create_header()
773 have_video = (mux->video_pad && mux->video_pad->codec != G_MAXUINT); in gst_flv_mux_create_header()
783 gst_flv_mux_preallocate_index (GstFlvMux * mux) in gst_flv_mux_preallocate_index() argument
797 GST_DEBUG_OBJECT (mux, "preallocating %d bytes for the index", in gst_flv_mux_preallocate_index()
831 gst_flv_mux_create_metadata (GstFlvMux * mux, gboolean full) in gst_flv_mux_create_metadata() argument
839 tags = gst_tag_setter_get_tag_list (GST_TAG_SETTER (mux)); in gst_flv_mux_create_metadata()
841 GST_DEBUG_OBJECT (mux, "tags = %" GST_PTR_FORMAT, tags); in gst_flv_mux_create_metadata()
879 if (!mux->streamable) { in gst_flv_mux_create_metadata()
891 tmp = gst_flv_mux_preallocate_index (mux); in gst_flv_mux_create_metadata()
894 GST_DEBUG_OBJECT (mux, "not preallocating index, streamable mode"); in gst_flv_mux_create_metadata()
905 mux->duration = dur; in gst_flv_mux_create_metadata()
938 if (mux->duration == GST_CLOCK_TIME_NONE) { in gst_flv_mux_create_metadata()
942 for (l = GST_ELEMENT_CAST (mux)->sinkpads; l; l = l->next) { in gst_flv_mux_create_metadata()
947 if (mux->duration == GST_CLOCK_TIME_NONE) in gst_flv_mux_create_metadata()
948 mux->duration = dur; in gst_flv_mux_create_metadata()
950 mux->duration = MAX (dur, mux->duration); in gst_flv_mux_create_metadata()
955 if (!mux->streamable && mux->duration != GST_CLOCK_TIME_NONE) { in gst_flv_mux_create_metadata()
959 d = gst_guint64_to_gdouble (mux->duration); in gst_flv_mux_create_metadata()
962 GST_DEBUG_OBJECT (mux, "determined the duration to be %f", d); in gst_flv_mux_create_metadata()
968 if (mux->video_pad && mux->video_pad->codec != G_MAXUINT) { in gst_flv_mux_create_metadata()
971 if (mux->video_pad) in gst_flv_mux_create_metadata()
972 caps = gst_pad_get_current_caps (GST_PAD (mux->video_pad)); in gst_flv_mux_create_metadata()
979 GST_DEBUG_OBJECT (mux, "putting videocodecid %d in the metadata", in gst_flv_mux_create_metadata()
980 mux->video_pad->codec); in gst_flv_mux_create_metadata()
983 mux->video_pad->codec); in gst_flv_mux_create_metadata()
991 GST_DEBUG_OBJECT (mux, "putting width %d in the metadata", size); in gst_flv_mux_create_metadata()
999 GST_DEBUG_OBJECT (mux, "putting height %d in the metadata", size); in gst_flv_mux_create_metadata()
1010 GST_DEBUG_OBJECT (mux, "putting AspectRatioX %f in the metadata", d); in gst_flv_mux_create_metadata()
1017 GST_DEBUG_OBJECT (mux, "putting AspectRatioY %f in the metadata", d); in gst_flv_mux_create_metadata()
1028 GST_DEBUG_OBJECT (mux, "putting framerate %f in the metadata", d); in gst_flv_mux_create_metadata()
1035 GST_DEBUG_OBJECT (mux, "putting videodatarate %u KB/s in the metadata", in gst_flv_mux_create_metadata()
1036 mux->video_pad->bitrate / 1024); in gst_flv_mux_create_metadata()
1038 mux->video_pad->bitrate / 1024); in gst_flv_mux_create_metadata()
1044 if (mux->audio_pad && mux->audio_pad->codec != G_MAXUINT) { in gst_flv_mux_create_metadata()
1045 GST_DEBUG_OBJECT (mux, "putting audiocodecid %d in the metadata", in gst_flv_mux_create_metadata()
1046 mux->audio_pad->codec); in gst_flv_mux_create_metadata()
1049 mux->audio_pad->codec); in gst_flv_mux_create_metadata()
1053 GST_DEBUG_OBJECT (mux, "putting audiodatarate %u KB/s in the metadata", in gst_flv_mux_create_metadata()
1054 mux->audio_pad->bitrate / 1024); in gst_flv_mux_create_metadata()
1056 mux->audio_pad->bitrate / 1024); in gst_flv_mux_create_metadata()
1061 _gst_buffer_new_and_alloc (2 + 15 + 1 + 2 + strlen (mux->metadatacreator), in gst_flv_mux_create_metadata()
1067 data[18] = (strlen (mux->metadatacreator) >> 8) & 0xff; in gst_flv_mux_create_metadata()
1068 data[19] = (strlen (mux->metadatacreator)) & 0xff; in gst_flv_mux_create_metadata()
1069 memcpy (&data[20], mux->metadatacreator, strlen (mux->metadatacreator)); in gst_flv_mux_create_metadata()
1073 _gst_buffer_new_and_alloc (2 + 7 + 1 + 2 + strlen (mux->encoder), in gst_flv_mux_create_metadata()
1079 data[10] = (strlen (mux->encoder) >> 8) & 0xff; in gst_flv_mux_create_metadata()
1080 data[11] = (strlen (mux->encoder)) & 0xff; in gst_flv_mux_create_metadata()
1081 memcpy (&data[12], mux->encoder, strlen (mux->encoder)); in gst_flv_mux_create_metadata()
1152 gst_flv_mux_buffer_to_tag_internal (GstFlvMux * mux, GstBuffer * buffer, in gst_flv_mux_buffer_to_tag_internal() argument
1173 if (dts < mux->last_dts) { in gst_flv_mux_buffer_to_tag_internal()
1176 GST_TIME_ARGS (mux->last_dts * GST_MSECOND)); in gst_flv_mux_buffer_to_tag_internal()
1177 dts = mux->last_dts; in gst_flv_mux_buffer_to_tag_internal()
1179 mux->last_dts = dts; in gst_flv_mux_buffer_to_tag_internal()
1189 if (GST_CLOCK_STIME_IS_VALID (mux->first_timestamp)) { in gst_flv_mux_buffer_to_tag_internal()
1190 dts -= mux->first_timestamp / GST_MSECOND; in gst_flv_mux_buffer_to_tag_internal()
1194 GST_LOG_OBJECT (mux, "got pts %i dts %i cts %i", pts, dts, cts); in gst_flv_mux_buffer_to_tag_internal()
1203 if (mux->video_pad == pad) { in gst_flv_mux_buffer_to_tag_internal()
1221 data[0] = (mux->video_pad == pad) ? 9 : 8; in gst_flv_mux_buffer_to_tag_internal()
1233 if (mux->video_pad == pad) { in gst_flv_mux_buffer_to_tag_internal()
1264 GST_DEBUG_OBJECT (mux, "Creating byte %02x with " in gst_flv_mux_buffer_to_tag_internal()
1289 if (mux->streamable) { in gst_flv_mux_buffer_to_tag_internal()
1307 if (mux->video_pad == pad && in gst_flv_mux_buffer_to_tag_internal()
1320 gst_flv_mux_buffer_to_tag (GstFlvMux * mux, GstBuffer * buffer, in gst_flv_mux_buffer_to_tag() argument
1323 return gst_flv_mux_buffer_to_tag_internal (mux, buffer, pad, FALSE); in gst_flv_mux_buffer_to_tag()
1327 gst_flv_mux_codec_data_buffer_to_tag (GstFlvMux * mux, GstBuffer * buffer, in gst_flv_mux_codec_data_buffer_to_tag() argument
1330 return gst_flv_mux_buffer_to_tag_internal (mux, buffer, pad, TRUE); in gst_flv_mux_codec_data_buffer_to_tag()
1334 gst_flv_mux_eos_to_tag (GstFlvMux * mux, GstFlvMuxPad * pad) in gst_flv_mux_eos_to_tag() argument
1336 return gst_flv_mux_buffer_to_tag_internal (mux, NULL, pad, FALSE); in gst_flv_mux_eos_to_tag()
1355 gst_flv_mux_prepare_src_caps (GstFlvMux * mux, GstBuffer ** header_buf, in gst_flv_mux_prepare_src_caps() argument
1366 header = gst_flv_mux_create_header (mux); in gst_flv_mux_prepare_src_caps()
1367 metadata = gst_flv_mux_create_metadata (mux, TRUE); in gst_flv_mux_prepare_src_caps()
1371 for (l = GST_ELEMENT_CAST (mux)->sinkpads; l != NULL; l = l->next) { in gst_flv_mux_prepare_src_caps()
1375 if (pad && mux->video_pad == pad && pad->codec == 7) { in gst_flv_mux_prepare_src_caps()
1377 GST_WARNING_OBJECT (mux, "Codec data for video stream not found, " in gst_flv_mux_prepare_src_caps()
1381 gst_flv_mux_codec_data_buffer_to_tag (mux, pad->codec_data, pad); in gst_flv_mux_prepare_src_caps()
1382 } else if (pad && mux->audio_pad == pad && pad->codec == 10) { in gst_flv_mux_prepare_src_caps()
1384 GST_WARNING_OBJECT (mux, "Codec data for audio stream not found, " in gst_flv_mux_prepare_src_caps()
1388 gst_flv_mux_codec_data_buffer_to_tag (mux, pad->codec_data, pad); in gst_flv_mux_prepare_src_caps()
1448 gst_flv_mux_write_header (GstFlvMux * mux) in gst_flv_mux_write_header() argument
1458 if (!mux->streamable) { in gst_flv_mux_write_header()
1463 if (gst_pad_peer_query (mux->srcpad, query)) { in gst_flv_mux_write_header()
1465 GST_INFO_OBJECT (mux, "downstream is %sseekable", seekable ? "" : "not "); in gst_flv_mux_write_header()
1468 GST_WARNING_OBJECT (mux, "downstream did not handle seeking query"); in gst_flv_mux_write_header()
1472 mux->streamable = TRUE; in gst_flv_mux_write_header()
1473 g_object_notify (G_OBJECT (mux), "streamable"); in gst_flv_mux_write_header()
1474 GST_WARNING_OBJECT (mux, "downstream is not seekable, but " in gst_flv_mux_write_header()
1481 if (!mux->streamable) { in gst_flv_mux_write_header()
1482 caps = gst_flv_mux_prepare_src_caps (mux, in gst_flv_mux_write_header()
1485 if (!mux->sent_header) { in gst_flv_mux_write_header()
1486 caps = gst_flv_mux_prepare_src_caps (mux, in gst_flv_mux_write_header()
1489 caps = gst_flv_mux_prepare_src_caps (mux, in gst_flv_mux_write_header()
1491 (mux->video_pad->info_changed ? &video_codec_data : NULL), in gst_flv_mux_write_header()
1492 (mux->audio_pad->info_changed ? &audio_codec_data : NULL)); in gst_flv_mux_write_header()
1496 gst_aggregator_set_src_caps (GST_AGGREGATOR_CAST (mux), caps); in gst_flv_mux_write_header()
1502 ret = gst_flv_mux_push (mux, header); in gst_flv_mux_write_header()
1505 mux->sent_header = TRUE; in gst_flv_mux_write_header()
1508 ret = gst_flv_mux_push (mux, metadata); in gst_flv_mux_write_header()
1513 ret = gst_flv_mux_push (mux, video_codec_data); in gst_flv_mux_write_header()
1516 mux->video_pad->info_changed = FALSE; in gst_flv_mux_write_header()
1519 ret = gst_flv_mux_push (mux, audio_codec_data); in gst_flv_mux_write_header()
1522 mux->audio_pad->info_changed = FALSE; in gst_flv_mux_write_header()
1552 gst_flv_mux_update_index (GstFlvMux * mux, GstBuffer * buffer, in gst_flv_mux_update_index() argument
1560 if (mux->video_pad == pad && in gst_flv_mux_update_index()
1569 entry->position = mux->byte_count; in gst_flv_mux_update_index()
1571 mux->index = g_list_prepend (mux->index, entry); in gst_flv_mux_update_index()
1576 gst_flv_mux_write_buffer (GstFlvMux * mux, GstFlvMuxPad * pad, in gst_flv_mux_write_buffer() argument
1587 if (!mux->streamable) in gst_flv_mux_write_buffer()
1588 gst_flv_mux_update_index (mux, buffer, pad); in gst_flv_mux_write_buffer()
1590 tag = gst_flv_mux_buffer_to_tag (mux, buffer, pad); in gst_flv_mux_write_buffer()
1594 ret = gst_flv_mux_push (mux, tag); in gst_flv_mux_write_buffer()
1604 gst_flv_mux_determine_duration (GstFlvMux * mux) in gst_flv_mux_determine_duration() argument
1609 GST_DEBUG_OBJECT (mux, "trying to determine the duration " in gst_flv_mux_determine_duration()
1612 for (l = GST_ELEMENT_CAST (mux)->sinkpads; l != NULL; l = l->next) { in gst_flv_mux_determine_duration()
1627 gst_flv_mux_are_all_pads_eos (GstFlvMux * mux) in gst_flv_mux_are_all_pads_eos() argument
1631 for (l = GST_ELEMENT_CAST (mux)->sinkpads; l; l = l->next) { in gst_flv_mux_are_all_pads_eos()
1641 gst_flv_mux_write_eos (GstFlvMux * mux) in gst_flv_mux_write_eos() argument
1645 if (mux->video_pad == NULL) in gst_flv_mux_write_eos()
1648 tag = gst_flv_mux_eos_to_tag (mux, mux->video_pad); in gst_flv_mux_write_eos()
1650 return gst_flv_mux_push (mux, tag); in gst_flv_mux_write_eos()
1654 gst_flv_mux_rewrite_header (GstFlvMux * mux) in gst_flv_mux_rewrite_header() argument
1666 if (mux->streamable) in gst_flv_mux_rewrite_header()
1673 if (!gst_pad_push_event (mux->srcpad, event)) { in gst_flv_mux_rewrite_header()
1674 GST_WARNING_OBJECT (mux, "Seek to rewrite header failed"); in gst_flv_mux_rewrite_header()
1681 dur = gst_flv_mux_determine_duration (mux); in gst_flv_mux_rewrite_header()
1683 mux->duration = dur; in gst_flv_mux_rewrite_header()
1686 d = gst_guint64_to_gdouble (mux->duration); in gst_flv_mux_rewrite_header()
1689 GST_DEBUG_OBJECT (mux, "determined the final duration to be %f", d); in gst_flv_mux_rewrite_header()
1694 d = gst_guint64_to_gdouble (mux->byte_count); in gst_flv_mux_rewrite_header()
1696 GST_DEBUG_OBJECT (mux, "putting total filesize %f in the metadata", d); in gst_flv_mux_rewrite_header()
1701 if (!mux->index) { in gst_flv_mux_rewrite_header()
1703 return gst_flv_mux_push (mux, rewrite); in gst_flv_mux_rewrite_header()
1707 mux->index = g_list_reverse (mux->index); in gst_flv_mux_rewrite_header()
1708 index_len = g_list_length (mux->index); in gst_flv_mux_rewrite_header()
1718 GST_DEBUG_OBJECT (mux, "Index length is %d", index_len); in gst_flv_mux_rewrite_header()
1721 GST_DEBUG_OBJECT (mux, "Allocating %d bytes for index", allocate_size); in gst_flv_mux_rewrite_header()
1735 for (i = 0, l = mux->index; l; l = l->next, i++) { in gst_flv_mux_rewrite_header()
1752 for (i = 0, l = mux->index; l; l = l->next, i++) { in gst_flv_mux_rewrite_header()
1780 GST_DEBUG_OBJECT (mux, "Remaining filler size is %d bytes", in gst_flv_mux_rewrite_header()
1788 return gst_flv_mux_push (mux, rewrite); in gst_flv_mux_rewrite_header()
1831 GstFlvMux *mux = GST_FLV_MUX (aggregator); in gst_flv_mux_aggregate() local
1838 if (mux->state == GST_FLV_MUX_STATE_HEADER) { in gst_flv_mux_aggregate()
1839 if (GST_ELEMENT_CAST (mux)->sinkpads == NULL) { in gst_flv_mux_aggregate()
1840 GST_ELEMENT_ERROR (mux, STREAM, MUX, (NULL), in gst_flv_mux_aggregate()
1845 ret = gst_flv_mux_write_header (mux); in gst_flv_mux_aggregate()
1848 mux->state = GST_FLV_MUX_STATE_DATA; in gst_flv_mux_aggregate()
1852 if (!mux->streamable || mux->first_timestamp == GST_CLOCK_STIME_NONE) { in gst_flv_mux_aggregate()
1854 mux->first_timestamp = ts; in gst_flv_mux_aggregate()
1856 mux->first_timestamp = 0; in gst_flv_mux_aggregate()
1862 if (mux->new_tags) { in gst_flv_mux_aggregate()
1863 GstBuffer *buf = gst_flv_mux_create_metadata (mux, FALSE); in gst_flv_mux_aggregate()
1865 gst_flv_mux_push (mux, buf); in gst_flv_mux_aggregate()
1866 mux->new_tags = FALSE; in gst_flv_mux_aggregate()
1877 best_time = best->dts - mux->first_timestamp; in gst_flv_mux_aggregate()
1896 if (!mux->streamable && (GST_CLOCK_STIME_IS_VALID (best_time)) in gst_flv_mux_aggregate()
1898 GST_WARNING_OBJECT (mux, "Timestamp larger than FLV supports - EOS"); in gst_flv_mux_aggregate()
1907 return gst_flv_mux_write_buffer (mux, best, buffer); in gst_flv_mux_aggregate()
1909 if (gst_flv_mux_are_all_pads_eos (mux)) { in gst_flv_mux_aggregate()
1910 gst_flv_mux_write_eos (mux); in gst_flv_mux_aggregate()
1911 gst_flv_mux_rewrite_header (mux); in gst_flv_mux_aggregate()
1922 GstFlvMux *mux = GST_FLV_MUX (object); in gst_flv_mux_get_property() local
1926 g_value_set_boolean (value, mux->streamable); in gst_flv_mux_get_property()
1929 g_value_set_string (value, mux->metadatacreator); in gst_flv_mux_get_property()
1932 g_value_set_string (value, mux->encoder); in gst_flv_mux_get_property()
1944 GstFlvMux *mux = GST_FLV_MUX (object); in gst_flv_mux_set_property() local
1948 mux->streamable = g_value_get_boolean (value); in gst_flv_mux_set_property()
1949 if (mux->streamable) in gst_flv_mux_set_property()
1950 gst_tag_setter_set_tag_merge_mode (GST_TAG_SETTER (mux), in gst_flv_mux_set_property()
1953 gst_tag_setter_set_tag_merge_mode (GST_TAG_SETTER (mux), in gst_flv_mux_set_property()
1957 g_free (mux->metadatacreator); in gst_flv_mux_set_property()
1959 GST_WARNING_OBJECT (mux, "metadatacreator property can not be NULL"); in gst_flv_mux_set_property()
1960 mux->metadatacreator = g_strdup (DEFAULT_METADATACREATOR); in gst_flv_mux_set_property()
1962 mux->metadatacreator = g_value_dup_string (value); in gst_flv_mux_set_property()
1966 g_free (mux->encoder); in gst_flv_mux_set_property()
1968 GST_WARNING_OBJECT (mux, "encoder property can not be NULL"); in gst_flv_mux_set_property()
1969 mux->encoder = g_strdup (DEFAULT_METADATACREATOR); in gst_flv_mux_set_property()
1971 mux->encoder = g_value_dup_string (value); in gst_flv_mux_set_property()
1983 GstFlvMux *mux = GST_FLV_MUX (aggregator); in gst_flv_mux_get_next_time() local
1984 GstAggregatorPad *agg_audio_pad = GST_AGGREGATOR_PAD_CAST (mux->audio_pad); in gst_flv_mux_get_next_time()
1985 GstAggregatorPad *agg_video_pad = GST_AGGREGATOR_PAD_CAST (mux->video_pad); in gst_flv_mux_get_next_time()
1988 if (mux->state == GST_FLV_MUX_STATE_HEADER && in gst_flv_mux_get_next_time()
1989 ((mux->audio_pad && mux->audio_pad->codec == G_MAXUINT) || in gst_flv_mux_get_next_time()
1990 (mux->video_pad && mux->video_pad->codec == G_MAXUINT))) in gst_flv_mux_get_next_time()
2009 GstFlvMux *mux = GST_FLV_MUX (aggregator); in gst_flv_mux_update_src_caps() local
2011 *ret = gst_flv_mux_prepare_src_caps (mux, NULL, NULL, NULL, NULL); in gst_flv_mux_update_src_caps()