/* Demuxer video-appsink buffer receive callback */
static void __video_app_sink_callback(GstElement *sink, CustomData *data)
{
- GstBuffer *buffer NULL;
+ GstBuffer *buffer = NULL;
media_format_h vidfmt = NULL;
media_packet_h vid_pkt = NULL;
uint64_t ns;
/* Demuxer text-appsink buffer receive callback */
void __text_app_sink_callback(GstElement *sink, CustomData *data)
{
- GstBuffer *buffer;
- media_format_h textfmt;
- media_packet_h text_pkt;
+ GstBuffer *buffer = NULL;
+ media_format_h textfmt = NULL;
+ media_packet_h text_pkt = NULL;
GstState state;
uint64_t ns;
int key;