Deprecated in 10/2012.
Showing the changes to libavdevice (1 of 12 files). Show all
Unified · Split
| @@ -421,13 +421,6 @@ static int mmap_init(AVFormatContext *ctx) · 420 unmodified lines | |||
| 421 | return 0; | 421 | return 0; |
| 422 | } | 422 | } |
| 423 | 423 | ||
| 424 | #if FF_API_DESTRUCT_PACKET | ||
| 425 | static void dummy_release_buffer(AVPacket *pkt) | ||
| 426 | { | ||
| 427 | av_assert0(0); | ||
| 428 | } | ||
| 429 | #endif | ||
| 430 | |||
| 431 | static void mmap_release_buffer(void *opaque, uint8_t *data) | 424 | static void mmap_release_buffer(void *opaque, uint8_t *data) |
| 432 | { | 425 | { |
| 433 | struct v4l2_buffer buf = { 0 }; | 426 | struct v4l2_buffer buf = { 0 }; |
| @@ -524,11 +517,6 @@ static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt) · 90 unmodified lines | |||
| 524 | 517 | ||
| 525 | pkt->data = s->buf_start[buf.index]; | 518 | pkt->data = s->buf_start[buf.index]; |
| 526 | pkt->size = buf.bytesused; | 519 | pkt->size = buf.bytesused; |
| 527 | #if FF_API_DESTRUCT_PACKET | ||
| 528 | FF_DISABLE_DEPRECATION_WARNINGS | ||
| 529 | pkt->destruct = dummy_release_buffer; | ||
| 530 | FF_ENABLE_DEPRECATION_WARNINGS | ||
| 531 | #endif | ||
| 532 | 520 | ||
| 533 | buf_descriptor = av_malloc(sizeof(struct buff_data)); | 521 | buf_descriptor = av_malloc(sizeof(struct buff_data)); |
| 534 | if (!buf_descriptor) { | 522 | if (!buf_descriptor) { |