From: Ray Lehtiniemi Date: Tue, 7 Apr 2009 20:20:48 +0000 (-0600) Subject: Constness changes X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=42eea21bf0c71036397cac39f19d537c9344081c;p=mlt Constness changes Signed-off-by: Ray Lehtiniemi --- diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c index 5cf2b2e7..c9420fa0 100644 --- a/src/modules/avformat/consumer_avformat.c +++ b/src/modules/avformat/consumer_avformat.c @@ -845,7 +845,7 @@ static void *consumer_thread( void *arg ) // Determine the format AVOutputFormat *fmt = NULL; - char *filename = mlt_properties_get( properties, "target" ); + const char *filename = mlt_properties_get( properties, "target" ); char *format = mlt_properties_get( properties, "f" ); char *vcodec = mlt_properties_get( properties, "vcodec" ); char *acodec = mlt_properties_get( properties, "acodec" ); diff --git a/src/modules/core/filter_watermark.c b/src/modules/core/filter_watermark.c index dd3e0af9..2e88e082 100644 --- a/src/modules/core/filter_watermark.c +++ b/src/modules/core/filter_watermark.c @@ -181,7 +181,7 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format char temp[ 132 ]; int count = 0; uint8_t *alpha = NULL; - char *rescale = mlt_properties_get( a_props, "rescale.interp" ); + const char *rescale = mlt_properties_get( a_props, "rescale.interp" ); if ( rescale == NULL || !strcmp( rescale, "none" ) ) rescale = "hyper"; mlt_transition_process( composite, b_frame, frame ); diff --git a/src/modules/core/transition_composite.c b/src/modules/core/transition_composite.c index 3a8bb3ec..04a518f5 100644 --- a/src/modules/core/transition_composite.c +++ b/src/modules/core/transition_composite.c @@ -1138,7 +1138,7 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f uint8_t *alpha_b = NULL; // Composites always need scaling... defaulting to lowest - char *rescale = mlt_properties_get( a_props, "rescale.interp" ); + const char *rescale = mlt_properties_get( a_props, "rescale.interp" ); if ( rescale == NULL || !strcmp( rescale, "none" ) ) rescale = "nearest"; mlt_properties_set( a_props, "rescale.interp", rescale ); diff --git a/src/modules/core/transition_region.c b/src/modules/core/transition_region.c index b75a2904..52bcb0f8 100644 --- a/src/modules/core/transition_region.c +++ b/src/modules/core/transition_region.c @@ -272,7 +272,7 @@ static int transition_get_image( mlt_frame frame, uint8_t **image, mlt_image_for if ( composite != NULL ) { // Get the resource of this filter (could be a shape [rectangle/circle] or an alpha provider of choice - char *resource = mlt_properties_get( properties, "resource" ); + const char *resource = mlt_properties_get( properties, "resource" ); // Get the old resource in case it's changed char *old_resource = mlt_properties_get( properties, "_old_resource" ); diff --git a/src/modules/westley/producer_westley.c b/src/modules/westley/producer_westley.c index 0a665403..50b1beb6 100644 --- a/src/modules/westley/producer_westley.c +++ b/src/modules/westley/producer_westley.c @@ -978,7 +978,7 @@ static void on_start_property( deserialise_context context, const xmlChar *name, enum service_type type; mlt_service service = context_pop_service( context, &type ); mlt_properties properties = MLT_SERVICE_PROPERTIES( service ); - char *value = NULL; + const char *value = NULL; if ( service != NULL ) {