Skip to content

Commit

Permalink
gst: set ausrc_prm duration
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Jun 3, 2024
1 parent 30432cb commit cce853d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/gst/gst.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,13 @@ static int gst_alloc(struct ausrc_st **stp, const struct ausrc *as,
else
*stp = st;

gst_element_get_state(st->pipeline, NULL, NULL, 500*1000*1000);
gint64 duration = 0;
gst_element_query_duration(st->pipeline,
GST_FORMAT_TIME,
&duration);

prm->duration = duration / 1000000;
return err;
}

Expand Down

0 comments on commit cce853d

Please sign in to comment.