File tree 2 files changed +5
-1
lines changed
deps/media-playback/media-playback
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ static bool mp_media_reset(mp_media_t *m)
407
407
? av_rescale_q (seek_pos , AV_TIME_BASE_Q , stream -> time_base )
408
408
: seek_pos ;
409
409
410
- if (!m -> is_network ) {
410
+ if (!m -> is_network && ! m -> is_concat ) {
411
411
int ret = av_seek_frame (m -> fmt , 0 , seek_target , seek_flags );
412
412
if (ret < 0 ) {
413
413
blog (LOG_WARNING , "MP: Failed to seek: %s" ,
@@ -689,6 +689,9 @@ bool mp_media_init(mp_media_t *media,
689
689
if (path && * path )
690
690
media -> is_network = !!strstr (path , "://" );
691
691
692
+ if (format && * format )
693
+ media -> is_concat = strcmp (format , "concat" ) == 0 ;
694
+
692
695
static bool initialized = false;
693
696
if (!initialized ) {
694
697
av_register_all ();
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ struct mp_media {
63
63
struct mp_decode v ;
64
64
struct mp_decode a ;
65
65
bool is_network ;
66
+ bool is_concat ;
66
67
bool has_video ;
67
68
bool has_audio ;
68
69
bool is_file ;
You can’t perform that action at this time.
0 commit comments