From fc087d25b7b4f74449415689ed43e810388a9003 Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Sun, 12 Dec 2004 13:11:33 +0000 Subject: [PATCH] blank_at method added git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@557 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/framework/mlt_playlist.c | 8 ++++++++ src/framework/mlt_playlist.h | 1 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/framework/mlt_playlist.c b/src/framework/mlt_playlist.c index a78ad6d..58b371d 100644 --- a/src/framework/mlt_playlist.c +++ b/src/framework/mlt_playlist.c @@ -1192,6 +1192,14 @@ int mlt_playlist_is_blank( mlt_playlist this, int clip ) return this == NULL || mlt_producer_is_blank( mlt_playlist_get_clip( this, clip ) ); } +/** Determine if the specified position is a blank. +*/ + +int mlt_playlist_is_blank_at( mlt_playlist this, int position ) +{ + return this == NULL || mlt_producer_is_blank( mlt_playlist_get_clip_at( this, position ) ); +} + /** Replace the specified clip with a blank and return the clip. */ diff --git a/src/framework/mlt_playlist.h b/src/framework/mlt_playlist.h index cda454f..e70ff62 100644 --- a/src/framework/mlt_playlist.h +++ b/src/framework/mlt_playlist.h @@ -93,6 +93,7 @@ extern int mlt_playlist_get_clip_index_at( mlt_playlist self, int position ); extern int mlt_playlist_clip_is_mix( mlt_playlist self, int clip ); extern void mlt_playlist_consolidate_blanks( mlt_playlist self, int keep_length ); extern int mlt_playlist_is_blank( mlt_playlist self, int clip ); +extern int mlt_playlist_is_blank_at( mlt_playlist self, int position ); extern void mlt_playlist_insert_blank( mlt_playlist self, int clip, int length ); extern void mlt_playlist_pad_blanks( mlt_playlist self, int position, int length, int find ); extern mlt_producer mlt_playlist_replace_with_blank( mlt_playlist self, int clip ); -- 1.7.4.4