X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_frame.c;h=ff92fbffc45225c08133c85c58ba9312e084ab39;hb=2e467c2eeba2b51aecddda21d4bb97bef4cd1459;hp=6e23964e82e79d0b755b92f84595dac8fe8c7bef;hpb=77a1a6728272d122e878834539761ac574f6c1da;p=melted diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index 6e23964..ff92fbf 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -120,7 +120,8 @@ int mlt_frame_set_aspect_ratio( mlt_frame this, double value ) mlt_position mlt_frame_get_position( mlt_frame this ) { - return mlt_properties_get_position( mlt_frame_properties( this ), "_position" ); + int pos = mlt_properties_get_position( mlt_frame_properties( this ), "_position" ); + return pos < 0 ? 0 : pos; } /** Set the position of this frame.