History

lavc: Drop deprecated destruct_packet related functions

Deprecated in 10/2012.

Vittorio Giovara committed 11 years ago

Commit 01bcc2d1 parent dc70c1912 files · +2 −144Browse files

Showing the changes to libavdevice (1 of 12 files). Show all

Unified · Split

libavdevice/v4l2.c+0−12
@@ -421,13 +421,6 @@ static int mmap_init(AVFormatContext *ctx) · 420 unmodified lines
421421 return 0;
422422 }
423423
424−#if FF_API_DESTRUCT_PACKET
425−static void dummy_release_buffer(AVPacket *pkt)
426−{
427− av_assert0(0);
428−}
429−#endif
430−
431424 static void mmap_release_buffer(void *opaque, uint8_t *data)
432425 {
433426 struct v4l2_buffer buf = { 0 };
@@ -524,11 +517,6 @@ static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt) · 90 unmodified lines
524517
525518 pkt->data = s->buf_start[buf.index];
526519 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
532520
533521 buf_descriptor = av_malloc(sizeof(struct buff_data));
534522 if (!buf_descriptor) {

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