Lines Matching refs:stream_period
366 GstStreamPeriod *stream_period; in gst_mpd_client_get_segment_duration() local
371 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_segment_duration()
372 g_return_val_if_fail (stream_period != NULL, GST_CLOCK_TIME_NONE); in gst_mpd_client_get_segment_duration()
382 duration = stream_period->duration; in gst_mpd_client_get_segment_duration()
712 GstStreamPeriod *stream_period; in gst_mpd_client_parse_baseURL() local
718 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_parse_baseURL()
719 g_return_val_if_fail (stream_period != NULL, g_strdup (empty)); in gst_mpd_client_parse_baseURL()
720 g_return_val_if_fail (stream_period->period != NULL, g_strdup (empty)); in gst_mpd_client_parse_baseURL()
738 gst_mpd_helper_combine_urls (abs_url, stream_period->period->BaseURLs, in gst_mpd_client_parse_baseURL()
763 const GstStreamPeriod *stream_period; in gst_mpd_client_get_segment_end_time() local
774 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_segment_end_time()
775 end = stream_period->start + stream_period->duration; in gst_mpd_client_get_segment_end_time()
843 GstStreamPeriod *stream_period; in gst_mpd_client_setup_representation() local
864 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_setup_representation()
865 g_return_val_if_fail (stream_period != NULL, FALSE); in gst_mpd_client_setup_representation()
866 g_return_val_if_fail (stream_period->period != NULL, FALSE); in gst_mpd_client_setup_representation()
868 PeriodStart = stream_period->start; in gst_mpd_client_setup_representation()
869 if (GST_CLOCK_TIME_IS_VALID (stream_period->duration)) in gst_mpd_client_setup_representation()
870 PeriodEnd = stream_period->start + stream_period->duration; in gst_mpd_client_setup_representation()
887 gst_mpd_client_get_segment_base (stream_period->period, in gst_mpd_client_setup_representation()
894 gst_mpd_client_get_segment_list (client, stream_period->period, in gst_mpd_client_setup_representation()
996 } else if (stream_period->period->SegmentTemplate != NULL) { in gst_mpd_client_setup_representation()
997 stream->cur_seg_template = stream_period->period->SegmentTemplate; in gst_mpd_client_setup_representation()
1215 GstStreamPeriod *stream_period; in gst_mpd_client_setup_media_presentation() local
1226 GstStreamPeriod *stream_period = list->data; in gst_mpd_client_setup_media_presentation() local
1229 && stream_period->duration != GST_CLOCK_TIME_NONE in gst_mpd_client_setup_media_presentation()
1230 && stream_period->start + stream_period->duration >= time) in gst_mpd_client_setup_media_presentation()
1231 || (time != GST_CLOCK_TIME_NONE && stream_period->start >= time)) in gst_mpd_client_setup_media_presentation()
1234 if (period_idx != -1 && stream_period->number >= period_idx) in gst_mpd_client_setup_media_presentation()
1237 if (period_id != NULL && stream_period->period->id != NULL in gst_mpd_client_setup_media_presentation()
1238 && strcmp (stream_period->period->id, period_id) == 0) in gst_mpd_client_setup_media_presentation()
1411 stream_period = g_slice_new0 (GstStreamPeriod); in gst_mpd_client_setup_media_presentation()
1412 client->periods = g_list_append (client->periods, stream_period); in gst_mpd_client_setup_media_presentation()
1413 stream_period->period = period_node; in gst_mpd_client_setup_media_presentation()
1414 stream_period->number = idx++; in gst_mpd_client_setup_media_presentation()
1415 stream_period->start = start; in gst_mpd_client_setup_media_presentation()
1416 stream_period->duration = duration; in gst_mpd_client_setup_media_presentation()
1422 && stream_period->duration != GST_CLOCK_TIME_NONE in gst_mpd_client_setup_media_presentation()
1423 && stream_period->start + stream_period->duration >= time) in gst_mpd_client_setup_media_presentation()
1424 || (time != GST_CLOCK_TIME_NONE && stream_period->start >= time)) in gst_mpd_client_setup_media_presentation()
1427 if (period_idx != -1 && stream_period->number >= period_idx) in gst_mpd_client_setup_media_presentation()
1430 if (period_id != NULL && stream_period->period->id != NULL in gst_mpd_client_setup_media_presentation()
1431 && strcmp (stream_period->period->id, period_id) == 0) in gst_mpd_client_setup_media_presentation()
1587 GstStreamPeriod *stream_period; in gst_mpd_client_get_adaptation_sets() local
1589 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_adaptation_sets()
1590 if (stream_period == NULL || stream_period->period == NULL) { in gst_mpd_client_get_adaptation_sets()
1595 return gst_mpd_client_get_adaptation_sets_for_period (client, stream_period); in gst_mpd_client_get_adaptation_sets()
1749 GstStreamPeriod *stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_stream_seek() local
1759 if (ts > stream_period->start) in gst_mpd_client_stream_seek()
1760 ts -= stream_period->start; in gst_mpd_client_stream_seek()
1842 GstStreamPeriod *stream_period; in gst_mpd_client_get_last_fragment_timestamp_end() local
1849 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_last_fragment_timestamp_end()
1850 *ts = stream_period->start + stream_period->duration; in gst_mpd_client_get_last_fragment_timestamp_end()
1869 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_last_fragment_timestamp_end()
1870 *ts = stream_period->start + stream_period->duration; in gst_mpd_client_get_last_fragment_timestamp_end()
1932 GstStreamPeriod *stream_period = NULL; in gst_mpd_client_get_period_start_time() local
1935 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_period_start_time()
1936 g_return_val_if_fail (stream_period != NULL, 0); in gst_mpd_client_get_period_start_time()
1938 return stream_period->start; in gst_mpd_client_get_period_start_time()
2286 GstStreamPeriod *stream_period; in gst_mpd_client_get_next_header() local
2291 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_next_header()
2292 g_return_val_if_fail (stream_period != NULL, FALSE); in gst_mpd_client_get_next_header()
2293 g_return_val_if_fail (stream_period->period != NULL, FALSE); in gst_mpd_client_get_next_header()
2334 GstStreamPeriod *stream_period; in gst_mpd_client_get_next_header_index() local
2339 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_next_header_index()
2340 g_return_val_if_fail (stream_period != NULL, FALSE); in gst_mpd_client_get_next_header_index()
2341 g_return_val_if_fail (stream_period->period != NULL, FALSE); in gst_mpd_client_get_next_header_index()
2622 GstStreamPeriod *stream_period; in gst_mpd_client_get_segments_counts() local
2631 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_segments_counts()
2632 if (stream_period->duration != -1) in gst_mpd_client_get_segments_counts()
2633 return gst_util_uint64_scale_ceil (stream_period->duration, 1, in gst_mpd_client_get_segments_counts()
2659 GstStreamPeriod *stream_period; in gst_mpd_client_get_nb_adaptationSet() local
2661 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_nb_adaptationSet()
2662 g_return_val_if_fail (stream_period != NULL, 0); in gst_mpd_client_get_nb_adaptationSet()
2663 g_return_val_if_fail (stream_period->period != NULL, 0); in gst_mpd_client_get_nb_adaptationSet()
2665 return g_list_length (stream_period->period->AdaptationSets); in gst_mpd_client_get_nb_adaptationSet()
2870 GstStreamPeriod *stream_period; in gst_mpd_client_get_list_and_nb_of_audio_language() local
2877 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_list_and_nb_of_audio_language()
2878 g_return_val_if_fail (stream_period != NULL, 0); in gst_mpd_client_get_list_and_nb_of_audio_language()
2879 g_return_val_if_fail (stream_period->period != NULL, 0); in gst_mpd_client_get_list_and_nb_of_audio_language()
2882 gst_mpd_client_get_adaptation_sets_for_period (client, stream_period); in gst_mpd_client_get_list_and_nb_of_audio_language()
2916 const GstStreamPeriod *stream_period; in gst_mpd_client_get_next_segment_availability_start_time() local
2922 stream_period = gst_mpd_client_get_stream_period (client); in gst_mpd_client_get_next_segment_availability_start_time()
2923 if (stream_period && stream_period->period) { in gst_mpd_client_get_next_segment_availability_start_time()
2924 period_start = stream_period->start; in gst_mpd_client_get_next_segment_availability_start_time()
2940 g_return_val_if_fail (stream_period != NULL, NULL); in gst_mpd_client_get_next_segment_availability_start_time()
2941 segmentEndTime = period_start + stream_period->duration; in gst_mpd_client_get_next_segment_availability_start_time()
3083 GstStreamPeriod *stream_period; in gst_mpd_client_get_period_index_at_time() local
3098 stream_period = iter->data; in gst_mpd_client_get_period_index_at_time()
3099 if (stream_period->start <= time_offset in gst_mpd_client_get_period_index_at_time()
3100 && (!GST_CLOCK_TIME_IS_VALID (stream_period->duration) in gst_mpd_client_get_period_index_at_time()
3101 || stream_period->start + stream_period->duration > time_offset)) { in gst_mpd_client_get_period_index_at_time()