mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
cfc78f21ec
Original commit message from CVS: * gst/gststructure.c: (gst_structure_get_fraction), (gst_structure_parse_value), (gst_structure_fixate_field_nearest_fraction): * gst/gststructure.h: * gst/gstutils.c: (gst_util_uint64_scale_int): * gst/gstutils.h: * scripts/update-funcnames: API Changes. Rename gst_util_clock_time_scale to gst_util_uint64_scale_int Make gst_structure_fixate_field_nearest_fraction take a numerator and denominator argument instead of a GValue add gst_structure_get_fraction helper function.
29 lines
806 B
Bash
Executable file
29 lines
806 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if test -z "$1" -o -n "$2"; then
|
|
echo "Usage: $0 FILE" >&2
|
|
exit 1
|
|
fi
|
|
|
|
file=$1
|
|
|
|
function subst () {
|
|
from=$1
|
|
to=$2
|
|
if grep -q $from $file; then
|
|
echo "$file: $from->$to"
|
|
perl -i -p -e "s/$from/$to/g" $file
|
|
fi
|
|
}
|
|
|
|
subst gst_event_new_newsegment gst_event_new_new_segment
|
|
subst gst_event_parse_newsegment gst_event_parse_new_segment
|
|
subst gst_event_new_buffersize gst_event_new_buffer_size
|
|
subst gst_event_parse_buffersize gst_event_parse_buffer_size
|
|
subst gst_ghost_pad_new_notarget gst_ghost_pad_new_no_target
|
|
subst gst_tag_setter_merge gst_tag_setter_merge_tags
|
|
subst gst_tag_setter_get_list gst_tag_setter_get_tag_list
|
|
subst gst_tag_setter_get_merge_mode gst_tag_setter_get_tag_merge_mode
|
|
subst gst_util_clock_time_scale gst_util_uint64_scale_int
|