mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +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 {
|
} else {
|
||||||
/* We then need to check for a non-negative granulepos */
|
/* We then need to check for a non-negative granulepos */
|
||||||
int i;
|
|
||||||
gboolean valid = FALSE;
|
gboolean valid = FALSE;
|
||||||
|
GList *l;
|
||||||
|
|
||||||
for (i = 0; i < pad->pagebuffers->length; i++) {
|
for (l = pad->pagebuffers->head; l != NULL; l = l->next) {
|
||||||
buf = g_queue_peek_nth (pad->pagebuffers, i);
|
buf = l->data;
|
||||||
/* Here we check the OFFSET_END, which is actually temporarily the
|
/* Here we check the OFFSET_END, which is actually temporarily the
|
||||||
* granulepos value for this buffer */
|
* granulepos value for this buffer */
|
||||||
if (GST_BUFFER_OFFSET_END (buf) != -1) {
|
if (GST_BUFFER_OFFSET_END_IS_VALID (buf)) {
|
||||||
valid = TRUE;
|
valid = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue