libs/gst/base/gstbasesink.c: *cur = (now - base) * basesink->segment.abs_rate + time; replaced by

Original commit message from CVS:
* libs/gst/base/gstbasesink.c:
*cur = (now - base) * basesink->segment.abs_rate + time; replaced by
*cur = gst_guint64_to_gdouble(now - base) * basesink->segment.abs_rate + time; for vs6
* win32/common/config.h:
added some defines GST_MAJORMINOR and HOST_CPU
* win32/common/libgstbase.def:
* win32/common/libgstreamer.def:
added some exported functions
This commit is contained in:
Sébastien Moutte 2006-01-12 22:04:58 +00:00
parent ff3b09e189
commit 3c5c1d29ea
6 changed files with 152 additions and 20 deletions

View file

@ -1,3 +1,14 @@
2006-01-12 Sebastien Moutte <sebastien@moutte.net>
* libs/gst/base/gstbasesink.c:
*cur = (now - base) * basesink->segment.abs_rate + time; replaced by
*cur = gst_guint64_to_gdouble(now - base) * basesink->segment.abs_rate + time; for vs6
* win32/common/config.h:
added some defines GST_MAJORMINOR and HOST_CPU
* win32/common/libgstbase.def:
* win32/common/libgstreamer.def:
added some exported functions.
2006-01-12 Stefan Kost <ensonic@users.sf.net> 2006-01-12 Stefan Kost <ensonic@users.sf.net>
* libs/gst/controller/gstcontroller.c: * libs/gst/controller/gstcontroller.c:

View file

@ -393,6 +393,7 @@ gst_segment_set_newsegment (GstSegment * segment, gboolean update, gdouble rate,
/* use previous rate to calculate duration */ /* use previous rate to calculate duration */
segment->accum += gst_gdouble_to_guint64 ( segment->accum += gst_gdouble_to_guint64 (
(gst_guint64_to_gdouble (duration) / segment->abs_rate)); (gst_guint64_to_gdouble (duration) / segment->abs_rate));
/* then update the current segment */ /* then update the current segment */
segment->rate = rate; segment->rate = rate;
segment->abs_rate = ABS (rate); segment->abs_rate = ABS (rate);

View file

@ -1398,7 +1398,9 @@ gst_base_sink_get_position (GstBaseSink * basesink, GstFormat format,
base = GST_ELEMENT_CAST (basesink)->base_time; base = GST_ELEMENT_CAST (basesink)->base_time;
base += basesink->segment.accum; base += basesink->segment.accum;
base = MIN (now, base); base = MIN (now, base);
*cur = (now - base) * basesink->segment.abs_rate + time; *cur =
gst_guint64_to_gdouble (now - base) * basesink->segment.abs_rate +
time;
GST_DEBUG_OBJECT (basesink, GST_DEBUG_OBJECT (basesink,
"now %" GST_TIME_FORMAT " - base %" GST_TIME_FORMAT " - accum %" "now %" GST_TIME_FORMAT " - base %" GST_TIME_FORMAT " - accum %"

View file

@ -35,6 +35,12 @@
/* Define the version */ /* Define the version */
#define GST_VERSION "0.10.1.1" #define GST_VERSION "0.10.1.1"
/* Define the MAJOR.MINOR version */
#define GST_MAJORMINOR "0.10"
/* Define host CPU */
#define HOST_CPU "i386"
/* Define if the host CPU is an Alpha */ /* Define if the host CPU is an Alpha */
#undef HAVE_CPU_ALPHA #undef HAVE_CPU_ALPHA

View file

@ -1,17 +1,41 @@
EXPORTS EXPORTS
gst_base_transform_set_passthrough
gst_base_transform_get_type gst_base_transform_set_passthrough
gst_base_sink_get_type
gst_base_src_set_live gst_base_transform_get_type
gst_base_src_get_type
gst_base_src_is_live gst_base_sink_get_type
gst_push_src_get_type
gst_type_find_helper gst_base_src_set_live
gst_collect_pads_add_pad
gst_collect_pads_remove_pad gst_base_src_get_type
gst_collect_pads_peek
gst_collect_pads_pop gst_base_src_is_live
gst_collect_pads_start
gst_collect_pads_stop gst_push_src_get_type
gst_collect_pads_set_function
gst_collect_pads_new gst_type_find_helper
gst_collect_pads_add_pad
gst_collect_pads_remove_pad
gst_collect_pads_peek
gst_collect_pads_pop
gst_collect_pads_start
gst_collect_pads_stop
gst_collect_pads_set_function
gst_collect_pads_new
gst_collect_pads_flush
gst_collect_pads_read
gst_collect_pads_available

View file

@ -39,6 +39,8 @@ EXPORTS
gst_buffer_new_and_alloc gst_buffer_new_and_alloc
gst_buffer_stamp gst_buffer_stamp
gst_bus_new
gst_bus_poll gst_bus_poll
@ -84,9 +86,19 @@ EXPORTS
gst_caps_to_string gst_caps_to_string
gst_clock_get_calibration
gst_clock_get_internal_time
gst_clock_get_type gst_clock_get_type
gst_clock_set_calibration
gst_clock_set_master
gst_core_error_quark gst_core_error_quark
gst_date_get_type
gst_deinit gst_deinit
@ -97,6 +109,8 @@ EXPORTS
gst_element_class_add_pad_template gst_element_class_add_pad_template
gst_element_class_get_pad_template gst_element_class_get_pad_template
gst_element_class_get_pad_template_list
gst_element_class_set_details gst_element_class_set_details
@ -122,7 +136,11 @@ EXPORTS
gst_element_get_clock gst_element_get_clock
gst_element_get_factory
gst_element_get_pad gst_element_get_pad
gst_element_get_request_pad
gst_element_get_state gst_element_get_state
@ -135,6 +153,8 @@ EXPORTS
gst_element_link_many gst_element_link_many
gst_element_link_pads gst_element_link_pads
gst_element_make_from_uri
gst_element_no_more_pads gst_element_no_more_pads
@ -145,9 +165,13 @@ EXPORTS
gst_element_remove_pad gst_element_remove_pad
gst_element_requires_clock gst_element_requires_clock
gst_element_send_event
gst_element_set_bus
gst_element_set_state gst_element_set_state
gst_element_sync_state_with_parent gst_element_sync_state_with_parent
gst_element_unlink gst_element_unlink
@ -164,6 +188,8 @@ EXPORTS
gst_format_get_details gst_format_get_details
gst_format_get_name
gst_format_register gst_format_register
gst_fourcc_get_type gst_fourcc_get_type
@ -171,6 +197,16 @@ EXPORTS
gst_fraction_get_type gst_fraction_get_type
gst_fraction_range_get_type gst_fraction_range_get_type
gst_ghost_pad_get_type
gst_ghost_pad_new
gst_ghost_pad_new_no_target
gst_ghost_pad_set_target
gst_implements_interface_cast
gst_implements_interface_check gst_implements_interface_check
@ -193,6 +229,8 @@ EXPORTS
gst_init_get_option_group gst_init_get_option_group
gst_int_range_get_type gst_int_range_get_type
gst_library_error_quark
gst_marshal_BOOLEAN__POINTER gst_marshal_BOOLEAN__POINTER
@ -203,6 +241,8 @@ EXPORTS
gst_marshal_VOID__POINTER_OBJECT gst_marshal_VOID__POINTER_OBJECT
gst_marshal_VOID__UINT_BOXED gst_marshal_VOID__UINT_BOXED
gst_message_new_element
gst_message_get_structure gst_message_get_structure
@ -223,6 +263,8 @@ EXPORTS
gst_message_parse_warning gst_message_parse_warning
gst_mini_object_get_type gst_mini_object_get_type
gst_mini_object_make_writable
gst_mini_object_new gst_mini_object_new
@ -247,6 +289,12 @@ EXPORTS
gst_object_set_name gst_object_set_name
gst_object_unref gst_object_unref
gst_pad_add_buffer_probe
gst_pad_add_data_probe
gst_pad_add_event_probe
gst_pad_alloc_buffer gst_pad_alloc_buffer
@ -259,12 +307,16 @@ EXPORTS
gst_pad_get_direction gst_pad_get_direction
gst_pad_get_element_private gst_pad_get_element_private
gst_pad_get_internal_links
gst_pad_get_internal_links_default gst_pad_get_internal_links_default
gst_pad_get_negotiated_caps gst_pad_get_negotiated_caps
gst_pad_get_pad_template_caps gst_pad_get_pad_template_caps
gst_pad_get_parent_element
gst_pad_get_peer gst_pad_get_peer
@ -291,11 +343,17 @@ EXPORTS
gst_pad_query gst_pad_query
gst_pad_query_default gst_pad_query_default
gst_pad_remove_buffer_probe
gst_pad_remove_data_probe
gst_pad_send_event gst_pad_send_event
gst_pad_set_active gst_pad_set_active
gst_pad_set_blocked_async
gst_pad_set_chain_function gst_pad_set_chain_function
gst_pad_set_element_private gst_pad_set_element_private
@ -321,6 +379,8 @@ EXPORTS
gst_pad_template_new gst_pad_template_new
gst_pad_unlink gst_pad_unlink
gst_param_spec_mini_object
gst_parse_launch gst_parse_launch
@ -330,6 +390,8 @@ EXPORTS
gst_pipeline_new gst_pipeline_new
gst_pipeline_set_new_stream_time
gst_plugin_feature_get_name gst_plugin_feature_get_name
gst_plugin_feature_get_type gst_plugin_feature_get_type
@ -347,10 +409,14 @@ EXPORTS
gst_stream_error_quark gst_stream_error_quark
gst_structure_copy gst_structure_copy
gst_structure_fixate_field_boolean
gst_structure_fixate_field_nearest_double gst_structure_fixate_field_nearest_double
gst_structure_fixate_field_nearest_int gst_structure_fixate_field_nearest_int
gst_structure_fixate_field_nearest_fraction
gst_structure_foreach gst_structure_foreach
@ -359,6 +425,8 @@ EXPORTS
gst_structure_get_double gst_structure_get_double
gst_structure_get_fourcc gst_structure_get_fourcc
gst_structure_get_fraction
gst_structure_get_int gst_structure_get_int
@ -370,6 +438,8 @@ EXPORTS
gst_structure_has_field gst_structure_has_field
gst_structure_has_name
gst_structure_new gst_structure_new
gst_structure_remove_field gst_structure_remove_field
@ -408,8 +478,14 @@ EXPORTS
gst_util_set_object_arg gst_util_set_object_arg
gst_value_array_append_value
gst_value_array_get_size
gst_value_array_get_type gst_value_array_get_type
gst_value_array_get_value
gst_value_get_caps gst_value_get_caps
gst_value_get_fraction_denominator gst_value_get_fraction_denominator
@ -519,6 +595,8 @@ EXPORTS
gst_iterator_fold gst_iterator_fold
gst_iterator_free gst_iterator_free
gst_message_new_custom
gst_message_new_eos gst_message_new_eos
@ -550,6 +628,8 @@ EXPORTS
gst_pad_activate_push gst_pad_activate_push
gst_pad_alloc_buffer_and_set_caps
gst_pad_chain gst_pad_chain
gst_pad_check_pull_range gst_pad_check_pull_range
@ -642,6 +722,8 @@ EXPORTS
gst_segment_clip gst_segment_clip
gst_segment_set_duration
gst_segment_set_newsegment gst_segment_set_newsegment
gst_segment_to_running_time gst_segment_to_running_time
@ -659,8 +741,12 @@ EXPORTS
gst_tag_list_foreach gst_tag_list_foreach
gst_tag_list_free gst_tag_list_free
gst_tag_list_get_date_index
gst_tag_list_get_double_index gst_tag_list_get_double_index
gst_tag_list_get_string
gst_tag_list_get_string_index gst_tag_list_get_string_index
@ -693,6 +779,8 @@ EXPORTS
gst_util_guint64_to_gdouble gst_util_guint64_to_gdouble
gst_util_uint64_scale gst_util_uint64_scale
gst_util_uint64_scale_int
gst_value_get_int_range_max gst_value_get_int_range_max