gst/flx/gstflxdec.*: Implement DURATION query.
authorWim Taymans <wim.taymans@gmail.com>
Sun, 19 Feb 2006 12:09:19 +0000 (12:09 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 19 Feb 2006 12:09:19 +0000 (12:09 +0000)
Original commit message from CVS:
* gst/flx/gstflxdec.c: (gst_flxdec_src_query_handler),
(gst_flxdec_chain):
* gst/flx/gstflxdec.h:
Implement DURATION query.

ChangeLog
gst/flx/gstflxdec.c
gst/flx/gstflxdec.h

index 8509028cfa697133a97f3bdf6768e7601a6e2fac..b8cc2a0f96ffc5af188a3d642e0d6a2202564b1b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-19  Wim Taymans  <wim@fluendo.com>
+
+       * gst/flx/gstflxdec.c: (gst_flxdec_src_query_handler),
+       (gst_flxdec_chain):
+       * gst/flx/gstflxdec.h:
+       Implement DURATION query.
+
 2006-02-19  Wim Taymans  <wim@fluendo.com>
 
        * gst/flx/flx_color.h:
index 456ae5c1b6ee3ca01f4981a42c749dfde9b8a93b..9401249f1425fc7bef9329ee20f6e2084d188cfa 100644 (file)
@@ -526,6 +526,8 @@ gst_flxdec_chain (GstPad * pad, GstBuffer * buf)
       }
 
       flxdec->duration = flxh->frames * flxdec->frame_time;
+      GST_LOG ("duration   :  %" GST_TIME_FORMAT,
+          GST_TIME_ARGS (flxdec->duration));
 
       caps = gst_caps_from_string (GST_VIDEO_CAPS_xRGB_HOST_ENDIAN);
       gst_caps_set_simple (caps,
index 16e7b8ebf2e543d2259433e56a6318a2b908a383..a47413e0d8c7d3a34aa16fba77fae62788683136 100644 (file)
@@ -47,7 +47,7 @@ struct _GstFlxDec {
   GstAdapter *adapter;
   gulong size;
   GstFlxDecState state;
-  glong frame_time;
+  gint64 frame_time;
   gint64 next_time;
   gint64 duration;