[FFmpeg-soc] [soc]: r5299 - in concat/libavformat: avplaylist.c avplaylist.h

gkovacs subversion at mplayerhq.hu
Wed Aug 26 09:55:19 CEST 2009


Author: gkovacs
Date: Wed Aug 26 09:55:19 2009
New Revision: 5299

Log:
finish rename of insert_item and add_item

Modified:
   concat/libavformat/avplaylist.c
   concat/libavformat/avplaylist.h

Modified: concat/libavformat/avplaylist.c
==============================================================================
--- concat/libavformat/avplaylist.c	Wed Aug 26 09:47:47 2009	(r5298)
+++ concat/libavformat/avplaylist.c	Wed Aug 26 09:55:19 2009	(r5299)
@@ -86,7 +86,7 @@ int av_playlist_split_encodedstring(cons
     av_free(sepidx);
 }
 
-int av_playlist_insert_path(AVPlaylistContext *ctx, const char *itempath, int pos)
+int av_playlist_insert_item(AVPlaylistContext *ctx, const char *itempath, int pos)
 {
     int i;
     int64_t *durations_tmp;
@@ -135,7 +135,7 @@ int av_playlist_insert_path(AVPlaylistCo
 
 int av_playlist_add_item(AVPlaylistContext *ctx, const char *itempath)
 {
-    return av_playlist_insert_path(ctx, itempath, ctx->pelist_size);
+    return av_playlist_insert_item(ctx, itempath, ctx->pelist_size);
 }
 
 void av_playlist_relative_paths(char **flist,

Modified: concat/libavformat/avplaylist.h
==============================================================================
--- concat/libavformat/avplaylist.h	Wed Aug 26 09:47:47 2009	(r5298)
+++ concat/libavformat/avplaylist.h	Wed Aug 26 09:55:19 2009	(r5299)
@@ -81,9 +81,17 @@ int av_playlist_add_item(AVPlaylistConte
  *  at specified index. Existing items will be shifted up in the list.
  *  @param ctx Pre-allocated AVPlaylistContext to add elements to.
  *  @param itempath Absolute path to item for which to add a playlist element.
- *  @param pos Index which the newly inserted item will occupy.
+ *  @param pos Zero-based index which the newly inserted item will occupy.
  *  @return Returns 0 upon success, or negative upon failure.
  */
 int av_playlist_insert_item(AVPlaylistContext *ctx, const char *itempath, int pos);
 
+/** @brief Removes AVFormatContext for item located at speified index from AVPlaylistContext.
+ *  Existing items will be shifted down in the list.
+ *  @param ctx Pre-allocated AVPlaylistContext to remove elements from.
+ *  @param pos Zero-based index of the item to remove.
+ *  @return Returns 0 upon success, or negative upon failure.
+ */
+int av_playlist_remove_item(AVPlaylistContext *ctx, int pos);
+
 #endif /* AVFORMAT_AVPLAYLIST_H */


More information about the FFmpeg-soc mailing list