Commit 6423a402 authored by Edward Hervey's avatar Edward Hervey
Browse files

video: Make all frame_number guint32

Unifies the code and ensures that:
* subclasses needing to use the frame_number on a void* field will
  always work
* wraparounds will be automatically taken care of if we have to deal
  with more than 2**32 frames
parent 40a0624e
......@@ -372,8 +372,8 @@ struct _GstVideoDecoderPrivate
int reorder_depth;
int distance_from_sync;
guint64 system_frame_number;
guint64 decode_frame_number;
guint32 system_frame_number;
guint32 decode_frame_number;
GList *frames; /* Protected with OBJECT_LOCK */
GstVideoCodecState *input_state;
......
......@@ -153,7 +153,7 @@ struct _GstVideoEncoderPrivate
GList *force_key_unit; /* List of pending forced keyunits */
guint64 system_frame_number;
guint32 system_frame_number;
GList *frames; /* Protected with OBJECT_LOCK */
GstVideoCodecState *input_state;
......
......@@ -222,9 +222,9 @@ struct _GstVideoCodecFrame
guint32 flags;
/*< public >*/
gint system_frame_number; /* ED */
gint decode_frame_number; /* ED */
gint presentation_frame_number; /* ED */
guint32 system_frame_number; /* ED */
guint32 decode_frame_number; /* ED */
guint32 presentation_frame_number; /* ED */
GstClockTime dts; /* ED */
GstClockTime pts; /* ED */
......
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