Lines Matching refs:best
447 MpegPsPadData *best = NULL; in mpegpsmux_choose_best_stream() local
469 if (best != NULL) { in mpegpsmux_choose_best_stream()
471 (best->last_ts != GST_CLOCK_TIME_NONE && in mpegpsmux_choose_best_stream()
472 ps_data->last_ts < best->last_ts)) { in mpegpsmux_choose_best_stream()
473 best = ps_data; in mpegpsmux_choose_best_stream()
477 best = ps_data; in mpegpsmux_choose_best_stream()
486 return best; in mpegpsmux_choose_best_stream()
509 MpegPsPadData *best = NULL; in mpegpsmux_collected() local
522 best = mpegpsmux_choose_best_stream (mux); in mpegpsmux_collected()
532 best = mpegpsmux_choose_best_stream (mux); in mpegpsmux_collected()
535 if (best != NULL) { in mpegpsmux_collected()
536 GstBuffer *buf = best->queued.buf; in mpegpsmux_collected()
544 best->collect.pad, best->stream_id, in mpegpsmux_collected()
545 GST_TIME_ARGS (best->queued.pts), GST_TIME_ARGS (best->queued.dts)); in mpegpsmux_collected()
548 pts = GSTTIME_TO_MPEGTIME (best->queued.pts); in mpegpsmux_collected()
549 dts = GSTTIME_TO_MPEGTIME (best->queued.dts); in mpegpsmux_collected()
554 if (keyunit && best->stream_id == mux->video_stream_id in mpegpsmux_collected()
562 psmux_stream_add_data (best->stream, buf, pts, dts, keyunit); in mpegpsmux_collected()
564 best->queued.buf = NULL; in mpegpsmux_collected()
567 while (psmux_stream_bytes_in_buffer (best->stream) > 0) { in mpegpsmux_collected()
569 if (!psmux_write_stream_packet (mux->psmux, best->stream)) { in mpegpsmux_collected()
574 mux->last_ts = best->last_ts; in mpegpsmux_collected()