X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_frame.c;h=53472dbfb6537ecdc839033ac9aa3f6e49d5a25b;hb=cab7cd53c3a4d9c4355751088fec61860dcabbce;hp=1637dad3580094998cf02b6ecb0c19faff9b02de;hpb=fd322c689371726ccf09a65ffe73c6467f8abb3c;p=melted diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index 1637dad..53472db 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -262,16 +262,15 @@ int mlt_frame_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *for mlt_properties properties = MLT_FRAME_PROPERTIES( this ); mlt_get_image get_image = mlt_frame_pop_get_image( this ); mlt_producer producer = mlt_properties_get_data( properties, "test_card_producer", NULL ); + int error = 0; *width = *width >> 1 << 1; if ( get_image != NULL ) { - int error = 0; mlt_position position = mlt_frame_get_position( this ); error = get_image( this, buffer, format, width, height, writable ); mlt_frame_set_position( this, position ); - return error; } else if ( mlt_properties_get_data( properties, "image", NULL ) != NULL ) { @@ -360,7 +359,7 @@ int mlt_frame_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *for mlt_properties_set_int( properties, "test_image", 1 ); } - return 0; + return error; } uint8_t *mlt_frame_get_alpha_mask( mlt_frame this )