Unified · Split
| @@ -3,7 +3,7 @@ APITESTPROGS-$(call DEMDEC, H264, H264) += api-h264 · 2 unmodified lines | |||
| 3 | APITESTPROGS-yes += api-seek | 3 | APITESTPROGS-yes += api-seek |
| 4 | APITESTPROGS-yes += api-codec-param | 4 | APITESTPROGS-yes += api-codec-param |
| 5 | APITESTPROGS-$(call DEMDEC, H263, H263) += api-band | 5 | APITESTPROGS-$(call DEMDEC, H263, H263) += api-band |
| 6 | APITESTPROGS-$(HAVE_PTHREADS) += api-threadmessage | 6 | APITESTPROGS-$(HAVE_THREADS) += api-threadmessage |
| 7 | APITESTPROGS += $(APITESTPROGS-yes) | 7 | APITESTPROGS += $(APITESTPROGS-yes) |
| 8 | 8 | ||
| 9 | APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o) | 9 | APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o) |
| @@ -22,12 +22,11 @@ · 21 unmodified lines | |||
| 22 | * Thread message API test | 22 | * Thread message API test |
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | #include <pthread.h> | ||
| 26 | |||
| 27 | #include "libavutil/avassert.h" | 25 | #include "libavutil/avassert.h" |
| 28 | #include "libavutil/avstring.h" | 26 | #include "libavutil/avstring.h" |
| 29 | #include "libavutil/frame.h" | 27 | #include "libavutil/frame.h" |
| 30 | #include "libavutil/threadmessage.h" | 28 | #include "libavutil/threadmessage.h" |
| 29 | #include "libavutil/thread.h" // not public | ||
| 31 | 30 | ||
| 32 | struct sender_data { | 31 | struct sender_data { |
| 33 | int id; | 32 | int id; |
| @@ -28,7 +28,7 @@ FATE_API_SAMPLES_LIBAVFORMAT-yes += fate-api-jpeg-codec-param · 27 unmodified lines | |||
| 28 | fate-api-jpeg-codec-param: $(APITESTSDIR)/api-codec-param-test$(EXESUF) | 28 | fate-api-jpeg-codec-param: $(APITESTSDIR)/api-codec-param-test$(EXESUF) |
| 29 | fate-api-jpeg-codec-param: CMD = run $(APITESTSDIR)/api-codec-param-test $(TARGET_SAMPLES)/exif/image_small.jpg | 29 | fate-api-jpeg-codec-param: CMD = run $(APITESTSDIR)/api-codec-param-test $(TARGET_SAMPLES)/exif/image_small.jpg |
| 30 | 30 | ||
| 31 | FATE_API-$(HAVE_PTHREADS) += fate-api-threadmessage | 31 | FATE_API-$(HAVE_THREADS) += fate-api-threadmessage |
| 32 | fate-api-threadmessage: $(APITESTSDIR)/api-threadmessage-test$(EXESUF) | 32 | fate-api-threadmessage: $(APITESTSDIR)/api-threadmessage-test$(EXESUF) |
| 33 | fate-api-threadmessage: CMD = run $(APITESTSDIR)/api-threadmessage-test 3 10 30 50 2 20 40 | 33 | fate-api-threadmessage: CMD = run $(APITESTSDIR)/api-threadmessage-test 3 10 30 50 2 20 40 |
| 34 | fate-api-threadmessage: CMP = null | 34 | fate-api-threadmessage: CMP = null |