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
This commit is contained in:
Edward Hervey 2012-07-26 18:36:53 +02:00
parent 40a0624e99
commit 6423a4027e
3 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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 */