lavf/segment: fix crash when failing to open segment list