]> git.sesse.net Git - mlt/blobdiff - src/mlt++/MltService.cpp
fix regression on yadif deinterlace with progressive image
[mlt] / src / mlt++ / MltService.cpp
index 88751ab54f325dfc9e0c8247463ab3a18d809d31..7e561664fbc971751ea6e8fde90548aca5adba49 100644 (file)
@@ -3,19 +3,19 @@
  * Copyright (C) 2004-2005 Charles Yates
  * Author: Charles Yates <charles.yates@pandora.be>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published
- * by the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
+ * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <string.h>
@@ -89,6 +89,11 @@ Profile *Service::profile( )
        return new Profile( mlt_service_profile( get_service() ) );
 }
 
+mlt_profile Service::get_profile()
+{
+       return mlt_service_profile( get_service() );
+}
+
 Frame *Service::get_frame( int index )
 {
        mlt_frame frame = NULL;
@@ -119,3 +124,7 @@ Filter *Service::filter( int index )
        return result == NULL ? NULL : new Filter( result );
 }
 
+void Service::set_profile( Profile &profile )
+{
+       mlt_service_set_profile( get_service( ), profile.get_profile( ) );
+}