Commit e4b68a36 authored by Wim Taymans's avatar Wim Taymans
Browse files

oggdemux: use right type for the serialno

Use a consistent type for the serialno to avoid problems when comparing between
signed and unsigned variants.

Fixes #607926
parent 95511c88
...@@ -2551,7 +2551,7 @@ gst_ogg_demux_read_end_chain (GstOggDemux * ogg, GstOggChain * chain) ...@@ -2551,7 +2551,7 @@ gst_ogg_demux_read_end_chain (GstOggDemux * ogg, GstOggChain * chain)
/* find a pad with a given serial number /* find a pad with a given serial number
*/ */
static GstOggPad * static GstOggPad *
gst_ogg_demux_find_pad (GstOggDemux * ogg, int serialno) gst_ogg_demux_find_pad (GstOggDemux * ogg, glong serialno)
{ {
GstOggPad *pad; GstOggPad *pad;
gint i; gint i;
...@@ -2583,7 +2583,7 @@ gst_ogg_demux_find_pad (GstOggDemux * ogg, int serialno) ...@@ -2583,7 +2583,7 @@ gst_ogg_demux_find_pad (GstOggDemux * ogg, int serialno)
/* find a chain with a given serial number /* find a chain with a given serial number
*/ */
static GstOggChain * static GstOggChain *
gst_ogg_demux_find_chain (GstOggDemux * ogg, int serialno) gst_ogg_demux_find_chain (GstOggDemux * ogg, glong serialno)
{ {
GstOggPad *pad; GstOggPad *pad;
...@@ -2750,7 +2750,7 @@ gst_ogg_demux_handle_page (GstOggDemux * ogg, ogg_page * page) ...@@ -2750,7 +2750,7 @@ gst_ogg_demux_handle_page (GstOggDemux * ogg, ogg_page * page)
{ {
GstOggPad *pad; GstOggPad *pad;
gint64 granule; gint64 granule;
guint serialno; glong serialno;
GstFlowReturn result = GST_FLOW_OK; GstFlowReturn result = GST_FLOW_OK;
serialno = ogg_page_serialno (page); serialno = ogg_page_serialno (page);
......
...@@ -34,7 +34,7 @@ struct _GstOggStream ...@@ -34,7 +34,7 @@ struct _GstOggStream
{ {
ogg_stream_state stream; ogg_stream_state stream;
guint32 serialno; glong serialno;
GList *headers; GList *headers;
gboolean have_headers; gboolean have_headers;
GList *queued; GList *queued;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment