3636#include < string.h>
3737#include < mutex>
3838#include < atomic>
39- #include < tuple>
4039#include < gst/base/gstcollectpads.h>
4140#include < unordered_set>
4241
@@ -74,8 +73,6 @@ typedef struct _GstKvsSinkClass GstKvsSinkClass;
7473typedef struct _KvsSinkCustomData KvsSinkCustomData;
7574typedef struct _KvsSinkMetric KvsSinkMetric;
7675
77- typedef std::tuple<std::string, std::string, bool > (*SupportImagesCallback)();
78-
7976/* all information needed for one track */
8077typedef struct _GstKvsSinkTrackData {
8178 GstCollectData collect; /* we extend the CollectData */
@@ -146,9 +143,6 @@ struct _GstKvsSink {
146143 guint num_streams;
147144 guint num_audio_streams;
148145 guint num_video_streams;
149-
150- SupportImagesCallback support_images_callback;
151-
152146 std::unique_ptr<Credentials> credentials_;
153147 std::shared_ptr<KvsSinkCustomData> data;
154148};
@@ -178,8 +172,6 @@ struct _KvsSinkCustomData {
178172 frame_count (0 ),
179173 first_pts (GST_CLOCK_TIME_NONE),
180174 producer_start_time (GST_CLOCK_TIME_NONE),
181- fragment_metadata_count (0 ),
182- persisted_fragment_metadata_count (0 ),
183175 streamingStopped (false ) {}
184176 std::unique_ptr<KinesisVideoProducer> kinesis_video_producer;
185177 std::shared_ptr<KinesisVideoStream> kinesis_video_stream;
@@ -191,8 +183,6 @@ struct _KvsSinkCustomData {
191183 bool use_original_pts;
192184 bool get_metrics;
193185 uint32_t frame_count;
194- uint32_t fragment_metadata_count;
195- uint32_t persisted_fragment_metadata_count;
196186 bool on_first_frame;
197187 std::atomic<bool > streamingStopped;
198188 uint64_t frame_pts;
@@ -220,13 +210,4 @@ struct _KvsSinkMetric {
220210 bool on_first_frame;
221211};
222212
223- static bool inline put_fragment_metadata (GstElement* element, const std::string name, const std::string value, bool persistent) {
224- GstStructure *metadata = gst_structure_new_empty (KVS_ADD_METADATA_G_STRUCT_NAME);
225- gst_structure_set (metadata, KVS_ADD_METADATA_NAME, G_TYPE_STRING, name.c_str (),
226- KVS_ADD_METADATA_VALUE, G_TYPE_STRING, value.c_str (),
227- KVS_ADD_METADATA_PERSISTENT, G_TYPE_BOOLEAN, persistent, NULL );
228- GstEvent* event = gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM, metadata);
229- return gst_element_send_event (element, event);
230- }
231-
232213#endif /* __GST_KVS_SINK_H__ */
0 commit comments