Lines Matching refs:track_resource
364 IMFVirtualTrackResourcePlaybackCtx *track_resource = track->resources + resource_index; in open_track_resource_context() local
366 if (track_resource->ctx) { in open_track_resource_context()
368 track_resource->locator->absolute_uri); in open_track_resource_context()
372 track_resource->ctx = avformat_alloc_context(); in open_track_resource_context()
373 if (!track_resource->ctx) in open_track_resource_context()
376 track_resource->ctx->io_open = s->io_open; in open_track_resource_context()
377 track_resource->ctx->io_close = s->io_close; in open_track_resource_context()
378 track_resource->ctx->io_close2 = s->io_close2; in open_track_resource_context()
379 track_resource->ctx->flags |= s->flags & ~AVFMT_FLAG_CUSTOM_IO; in open_track_resource_context()
381 if ((ret = ff_copy_whiteblacklists(track_resource->ctx, s)) < 0) in open_track_resource_context()
384 if ((ret = av_opt_set(track_resource->ctx, "format_whitelist", "mxf", 0))) in open_track_resource_context()
390 ret = avformat_open_input(&track_resource->ctx, in open_track_resource_context()
391 track_resource->locator->absolute_uri, in open_track_resource_context()
396 track_resource->locator->absolute_uri, av_err2str(ret)); in open_track_resource_context()
403 if (track_resource->ctx->nb_streams != 1) { in open_track_resource_context()
408 st = track_resource->ctx->streams[0]; in open_track_resource_context()
415 av_sub_q(track->current_timestamp, track_resource->ts_offset), in open_track_resource_context()
423 track_resource->locator->absolute_uri, seek_offset); in open_track_resource_context()
424 ret = avformat_seek_file(track_resource->ctx, 0, seek_offset, seek_offset, seek_offset, 0); in open_track_resource_context()
430 track_resource->locator->absolute_uri, in open_track_resource_context()
432 avformat_close_input(&track_resource->ctx); in open_track_resource_context()
441 avformat_free_context(track_resource->ctx); in open_track_resource_context()
442 track_resource->ctx = NULL; in open_track_resource_context()