mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
tsparse: Adapt to new packetizer API
This commit is contained in:
parent
3c73d29162
commit
7fdf1cb0c8
1 changed files with 6 additions and 2 deletions
|
@ -27,6 +27,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "mpegtsbase.h"
|
#include "mpegtsbase.h"
|
||||||
#include "mpegtsparse.h"
|
#include "mpegtsparse.h"
|
||||||
|
@ -563,7 +564,11 @@ mpegts_parse_push (MpegTSBase * base, MpegTSPacketizerPacket * packet,
|
||||||
mpegts_parse_sync_program_pads (parse);
|
mpegts_parse_sync_program_pads (parse);
|
||||||
|
|
||||||
pid = packet->pid;
|
pid = packet->pid;
|
||||||
buffer = packet->buffer;
|
buffer =
|
||||||
|
gst_buffer_new_allocate (NULL, packet->data_end - packet->data_start,
|
||||||
|
NULL);
|
||||||
|
gst_buffer_fill (buffer, 0, packet->data_start,
|
||||||
|
packet->data_end - packet->data_start);
|
||||||
|
|
||||||
GST_OBJECT_LOCK (parse);
|
GST_OBJECT_LOCK (parse);
|
||||||
/* clear tspad->pushed on pads */
|
/* clear tspad->pushed on pads */
|
||||||
|
@ -636,7 +641,6 @@ mpegts_parse_push (MpegTSBase * base, MpegTSPacketizerPacket * packet,
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_buffer_unref (buffer);
|
gst_buffer_unref (buffer);
|
||||||
packet->buffer = NULL;
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue