|
@@ -427,15 +427,15 @@ static bool mp_media_reset(mp_media_t *m)
|
|
m->eof = false;
|
|
m->eof = false;
|
|
m->base_ts += next_ts;
|
|
m->base_ts += next_ts;
|
|
|
|
|
|
- if (!mp_media_prepare_frames(m))
|
|
|
|
- return false;
|
|
|
|
-
|
|
|
|
pthread_mutex_lock(&m->mutex);
|
|
pthread_mutex_lock(&m->mutex);
|
|
stopping = m->stopping;
|
|
stopping = m->stopping;
|
|
active = m->active;
|
|
active = m->active;
|
|
m->stopping = false;
|
|
m->stopping = false;
|
|
pthread_mutex_unlock(&m->mutex);
|
|
pthread_mutex_unlock(&m->mutex);
|
|
|
|
|
|
|
|
+ if (!mp_media_prepare_frames(m))
|
|
|
|
+ return false;
|
|
|
|
+
|
|
if (active) {
|
|
if (active) {
|
|
if (!m->play_sys_ts)
|
|
if (!m->play_sys_ts)
|
|
m->play_sys_ts = (int64_t)os_gettime_ns();
|
|
m->play_sys_ts = (int64_t)os_gettime_ns();
|