-
- float seconds = Units::text_to_seconds(tc,
- 1, // Use 1 as sample rate, doesn't matter
- TIME_HMSF, asset->frame_rate, 0);
- // Set tcstart if it hasn't been set yet, this is a bit problematic
- // FIXME: The problem arises if file has nonzero tcstart and user
- // manualy sets it to zero - every time project will load it will
- // be set to nonzero
- if (asset->tcstart == 0)
- asset->tcstart = int64_t(seconds * asset->frame_rate);