History

Merge commit '5c439b41d0489412c0a4cf6dfb98915251677b8e'

* commit '5c439b41d0489412c0a4cf6dfb98915251677b8e': avfilter: have avfilter_get_by_name return const for next bump Conflicts: libavfilter/version.h

Michael Niedermayer committed 13 years ago

Commit a1ce0602 parents 252f566 5c439b43 files · +9 −0Browse files

Unified · Split

3 files
  1. libavfilter/avfilter.c +3 −0
  2. libavfilter/avfilter.h +3 −0
  3. libavfilter/version.h +3 −0
libavfilter/avfilter.c+3−0
@@ -457,6 +457,9 @@ int avfilter_process_command(AVFilterContext *filter, const char *cmd, const cha · 456 unmodified lines
457457
458458 static AVFilter *first_filter;
459459
460+#if !FF_API_NOCONST_GET_NAME
461+const
462+#endif
460463 AVFilter *avfilter_get_by_name(const char *name)
461464 {
462465 const AVFilter *f = NULL;
libavfilter/avfilter.h+3−0
@@ -991,6 +991,9 @@ int avfilter_register(AVFilter *filter); · 990 unmodified lines
991991 * @return the filter definition, if any matching one is registered.
992992 * NULL if none found.
993993 */
994+#if !FF_API_NOCONST_GET_NAME
995+const
996+#endif
994997 AVFilter *avfilter_get_by_name(const char *name);
995998
996999 /**
libavfilter/version.h+3−0
@@ -85,5 +85,8 @@ · 84 unmodified lines
8585 #ifndef FF_API_DRAWTEXT_OLD_TIMELINE
8686 #define FF_API_DRAWTEXT_OLD_TIMELINE (LIBAVFILTER_VERSION_MAJOR < 4)
8787 #endif
88+#ifndef FF_API_NOCONST_GET_NAME
89+#define FF_API_NOCONST_GET_NAME (LIBAVFILTER_VERSION_MAJOR < 4)
90+#endif
8891
8992 #endif /* AVFILTER_VERSION_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t