- /* TODO: fix that crap, this is barely RTSP */
-
- /* We want to seek before unpausing, but it won't
- * work if the instance is not running yet. */
- bool running = (sout_id != NULL);
- if (!running)
- vod_start(rtsp->vod_media, psz_session);
-
- if (range != NULL)
- {
- int64_t time = ParseNPT (range + 4);
- vod_seek(rtsp->vod_media, psz_session, time);
- }
-
- /* This is the thing to do to unpause... */
- if (running)
- vod_start(rtsp->vod_media, psz_session);
+ vod_play(rtsp->vod_media, psz_session, &start, end);
+ npt = start;