ext/exporter.c in rmov-0.1.4 vs ext/exporter.c in rmov-0.1.5
- old
+ new
@@ -91,11 +91,11 @@
ComponentInstance component = exporter_component(obj);
// Bring this process to the front
err = TransformProcessType(¤t_process, kProcessTransformToForegroundApplication);
if (err != noErr) {
- rb_raise(eQuickTime, "Error %d occurred while brining this application to the forground.", err);
+ rb_raise(eQuickTime, "Error %d occurred while bringing this application to the forground.", err);
}
SetFrontProcess(¤t_process);
// Show export dialog and save settings
err = MovieExportDoUserDialog(component, movie, 0, 0, GetMovieDuration(movie), &canceled);
@@ -174,10 +174,10 @@
file = fopen(RSTRING(filepath)->ptr, "wb");
if (!file) {
rb_raise(eQuickTime, "Unable to open file for saving at %s.", RSTRING(filepath)->ptr);
}
- fwrite(&settings, GetHandleSize((Handle)settings), 1, file);
+ fwrite(*settings, GetHandleSize((Handle)settings), 1, file);
fclose(file);
return Qnil;
}