Commit 645eac79 authored by Wim Taymans's avatar Wim Taymans

gst/flx/gstflxdec.*: Implement DURATION query.

Original commit message from CVS:
* gst/flx/gstflxdec.c: (gst_flxdec_src_query_handler),
(gst_flxdec_chain):
* gst/flx/gstflxdec.h:
Implement DURATION query.
parent b4d28290
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> 2006-02-19 Wim Taymans <wim@fluendo.com>
* gst/flx/flx_color.h: * gst/flx/flx_color.h:
......
...@@ -526,6 +526,8 @@ gst_flxdec_chain (GstPad * pad, GstBuffer * buf) ...@@ -526,6 +526,8 @@ gst_flxdec_chain (GstPad * pad, GstBuffer * buf)
} }
flxdec->duration = flxh->frames * flxdec->frame_time; 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); caps = gst_caps_from_string (GST_VIDEO_CAPS_xRGB_HOST_ENDIAN);
gst_caps_set_simple (caps, gst_caps_set_simple (caps,
......
...@@ -47,7 +47,7 @@ struct _GstFlxDec { ...@@ -47,7 +47,7 @@ struct _GstFlxDec {
GstAdapter *adapter; GstAdapter *adapter;
gulong size; gulong size;
GstFlxDecState state; GstFlxDecState state;
glong frame_time; gint64 frame_time;
gint64 next_time; gint64 next_time;
gint64 duration; gint64 duration;
......
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