]> git.sesse.net Git - mlt/commitdiff
Fix build errors caused by the (hypothetical) conversion of mlt_position from an...
authordezeroex <dezeroex@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 15 Aug 2005 06:43:09 +0000 (06:43 +0000)
committerdezeroex <dezeroex@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 15 Aug 2005 06:43:09 +0000 (06:43 +0000)
preserving original behavior.

git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@801 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/westley/consumer_westley.c

index 253b7ca181c24d7e868404e1c32d93d74cfd726e..06c4471f328b23ad180bbf0e5261d4a651e2123b 100644 (file)
@@ -404,7 +404,7 @@ static void serialise_playlist( serialise_context context, mlt_service service,
                                        char length[ 20 ];
                                        length[ 19 ] = '\0';
                                        xmlNode *entry = xmlNewChild( child, NULL, "blank", NULL );
-                                       snprintf( length, 19, "%d", info.frame_count );
+                                       snprintf( length, 19, "%d", (int)info.frame_count );
                                        xmlNewProp( entry, "length", length );
                                }
                                else
@@ -413,9 +413,9 @@ static void serialise_playlist( serialise_context context, mlt_service service,
                                        xmlNode *entry = xmlNewChild( child, NULL, "entry", NULL );
                                        id = westley_get_id( context, MLT_SERVICE( producer ), westley_existing );
                                        xmlNewProp( entry, "producer", id );
-                                       sprintf( temp, "%d", info.frame_in );
+                                       sprintf( temp, "%d", (int)info.frame_in );
                                        xmlNewProp( entry, "in", temp );
-                                       sprintf( temp, "%d", info.frame_out );
+                                       sprintf( temp, "%d", (int)info.frame_out );
                                        xmlNewProp( entry, "out", temp );
                                        if ( info.repeat > 1 )
                                        {