瀏覽代碼

Merge pull request #85996 from nikitalita/fix-next_ogg_packet

Fix `OggPacketSequencePlayback::next_ogg_packet()` never returning false
Rémi Verschelde 1 年之前
父節點
當前提交
edf64243bf
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      modules/ogg/ogg_packet_sequence.cpp

+ 1 - 3
modules/ogg/ogg_packet_sequence.cpp

@@ -159,9 +159,7 @@ bool OggPacketSequencePlayback::next_ogg_packet(ogg_packet **p_packet) const {
 
 	*p_packet = packet;
 
-	if (!packet->e_o_s) { // Added this so it doesn't try to go to the next packet if it's the last packet of the file.
-		packet_cursor++;
-	}
+	packet_cursor++;
 
 	return true;
 }