[FFmpeg-soc] [soc]: r5309 - in concat/libavformat: avplaylist.c avplaylist.h m3u.c pls.c utils.c.diff xspf.c
gkovacs
subversion at mplayerhq.hu
Wed Aug 26 19:58:29 CEST 2009
Author: gkovacs
Date: Wed Aug 26 19:58:29 2009
New Revision: 5309
Log:
remove av_playlist_add_item
Modified:
concat/libavformat/avplaylist.c
concat/libavformat/avplaylist.h
concat/libavformat/m3u.c
concat/libavformat/pls.c
concat/libavformat/utils.c.diff
concat/libavformat/xspf.c
Modified: concat/libavformat/avplaylist.c
==============================================================================
--- concat/libavformat/avplaylist.c Wed Aug 26 10:54:21 2009 (r5308)
+++ concat/libavformat/avplaylist.c Wed Aug 26 19:58:29 2009 (r5309)
@@ -35,11 +35,6 @@
#include "libavutil/avstring.h"
#include "internal.h"
-int av_playlist_add_item(AVPlaylistContext *ctx, const char *itempath)
-{
- return av_playlist_insert_item(ctx, itempath, ctx->pelist_size);
-}
-
int av_playlist_insert_item(AVPlaylistContext *ctx, const char *itempath, int pos)
{
int i;
Modified: concat/libavformat/avplaylist.h
==============================================================================
--- concat/libavformat/avplaylist.h Wed Aug 26 10:54:21 2009 (r5308)
+++ concat/libavformat/avplaylist.h Wed Aug 26 19:58:29 2009 (r5309)
@@ -49,13 +49,6 @@ typedef struct AVPlaylistContext {
AVFormatContext *master_formatcontext; /**< Parent AVFormatContext of which priv_data is this playlist. NULL if playlist is used standalone. */
} AVPlaylistContext;
-/** @brief Creates and adds AVFormatContext for item located at specified path to a AVPlaylistContext.
- * @param ctx Pre-allocated AVPlaylistContext to add elements to.
- * @param itempath Absolute path to item for which to add a playlist element.
- * @return Returns 0 upon success, or negative upon failure.
- */
-int av_playlist_add_item(AVPlaylistContext *ctx, const char *itempath);
-
/** @brief Creates and adds AVFormatContext for item located at specified path to a AVPlaylistContext
* at specified index. Existing items will be shifted up in the list.
* @param ctx Pre-allocated AVPlaylistContext to add elements to.
Modified: concat/libavformat/m3u.c
==============================================================================
--- concat/libavformat/m3u.c Wed Aug 26 10:54:21 2009 (r5308)
+++ concat/libavformat/m3u.c Wed Aug 26 19:58:29 2009 (r5309)
@@ -99,7 +99,7 @@ static int m3u_read_header(AVFormatConte
return AVERROR_NOMEM;
}
for (i = 0; i < flist_len; ++i)
- av_playlist_add_item(ctx, flist[i]);
+ av_playlist_insert_item(ctx, flist[i], ctx->pelist_size);
av_free(flist);
s->priv_data = ctx;
ctx->master_formatcontext = s;
Modified: concat/libavformat/pls.c
==============================================================================
--- concat/libavformat/pls.c Wed Aug 26 10:54:21 2009 (r5308)
+++ concat/libavformat/pls.c Wed Aug 26 19:58:29 2009 (r5309)
@@ -118,7 +118,7 @@ static int pls_read_header(AVFormatConte
return AVERROR_NOMEM;
}
for (i = 0; i < flist_len; ++i)
- av_playlist_add_item(ctx, flist[i]);
+ av_playlist_insert_item(ctx, flist[i], ctx->pelist_size);
av_free(flist);
s->priv_data = ctx;
ctx->master_formatcontext = s;
Modified: concat/libavformat/utils.c.diff
==============================================================================
--- concat/libavformat/utils.c.diff Wed Aug 26 10:54:21 2009 (r5308)
+++ concat/libavformat/utils.c.diff Wed Aug 26 19:58:29 2009 (r5309)
@@ -1,5 +1,5 @@
diff --git a/libavformat/utils.c b/libavformat/utils.c
-index 4cec286..544dfbc 100644
+index 4cec286..920c3fa 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -27,6 +27,8 @@
@@ -33,7 +33,7 @@ index 4cec286..544dfbc 100644
+ if (playlist_ctx) {
+ av_log(ic, AV_LOG_DEBUG, "Generating playlist from %s\n", filename);
+ for (i = 0; i < flist_len; ++i)
-+ av_playlist_add_item(playlist_ctx, flist[i]);
++ av_playlist_insert_item(playlist_ctx, flist[i], playlist_ctx->pelist_size);
+ av_strlcpy(ic->filename, filename, sizeof(ic->filename));
+ ff_playlist_populate_context(playlist_ctx, playlist_ctx->pe_curidx);
+ ff_playlist_set_streams(playlist_ctx);
Modified: concat/libavformat/xspf.c
==============================================================================
--- concat/libavformat/xspf.c Wed Aug 26 10:54:21 2009 (r5308)
+++ concat/libavformat/xspf.c Wed Aug 26 19:58:29 2009 (r5309)
@@ -141,7 +141,7 @@ static int xspf_read_header(AVFormatCont
return AVERROR_NOMEM;
}
for (i = 0; i < flist_len; ++i)
- av_playlist_add_item(ctx, flist[i]);
+ av_playlist_insert_item(ctx, flist[i], ctx->pelist_size);
av_free(flist);
s->priv_data = ctx;
ctx->master_formatcontext = s;
More information about the FFmpeg-soc
mailing list