mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 20:31:20 +00:00
oggmux: fix silly GQueue iteration code
This commit is contained in:
parent
651fa00c12
commit
a4f0be6e33
1 changed files with 4 additions and 4 deletions
|
@ -642,14 +642,14 @@ gst_ogg_mux_dequeue_page (GstOggMux * mux, GstFlowReturn * flowret)
|
|||
}
|
||||
} else {
|
||||
/* We then need to check for a non-negative granulepos */
|
||||
int i;
|
||||
gboolean valid = FALSE;
|
||||
GList *l;
|
||||
|
||||
for (i = 0; i < pad->pagebuffers->length; i++) {
|
||||
buf = g_queue_peek_nth (pad->pagebuffers, i);
|
||||
for (l = pad->pagebuffers->head; l != NULL; l = l->next) {
|
||||
buf = l->data;
|
||||
/* Here we check the OFFSET_END, which is actually temporarily the
|
||||
* granulepos value for this buffer */
|
||||
if (GST_BUFFER_OFFSET_END (buf) != -1) {
|
||||
if (GST_BUFFER_OFFSET_END_IS_VALID (buf)) {
|
||||
valid = TRUE;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue