mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
validate: Remove unused method
gst_media_descriptor_add_frame is not used anywhere https://bugzilla.gnome.org/show_bug.cgi?id=737852
This commit is contained in:
parent
a3513fc952
commit
b0d39c1c45
2 changed files with 0 additions and 54 deletions
|
@ -164,32 +164,6 @@ deserialize_framenode (const gchar ** names, const gchar ** values)
|
|||
}
|
||||
|
||||
|
||||
static gboolean
|
||||
frame_node_compare (FrameNode * fnode, GstBuffer * buf, GstBuffer * expected)
|
||||
{
|
||||
if (expected != NULL) {
|
||||
GST_BUFFER_OFFSET (expected) = fnode->offset;
|
||||
GST_BUFFER_OFFSET_END (expected) = fnode->offset_end;
|
||||
GST_BUFFER_DURATION (expected) = fnode->duration;
|
||||
GST_BUFFER_PTS (expected) = fnode->pts;
|
||||
GST_BUFFER_DTS (expected) = fnode->dts;
|
||||
if (fnode->is_keyframe)
|
||||
GST_BUFFER_FLAG_UNSET (expected, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||
}
|
||||
|
||||
if ((fnode->offset == GST_BUFFER_OFFSET (buf) &&
|
||||
fnode->offset_end == GST_BUFFER_OFFSET_END (buf) &&
|
||||
fnode->duration == GST_BUFFER_DURATION (buf) &&
|
||||
fnode->pts == GST_BUFFER_PTS (buf) &&
|
||||
fnode->dts == GST_BUFFER_DTS (buf) &&
|
||||
fnode->is_keyframe == GST_BUFFER_FLAG_IS_SET (buf,
|
||||
GST_BUFFER_FLAG_DELTA_UNIT)) == FALSE) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
on_end_element_cb (GMarkupParseContext * context,
|
||||
const gchar * element_name, gpointer user_data, GError ** error)
|
||||
|
@ -475,30 +449,6 @@ gst_media_descriptor_parser_all_stream_found (GstMediaDescriptorParser * parser)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_media_descriptor_parser_add_frame (GstMediaDescriptorParser * parser,
|
||||
GstPad * pad, GstBuffer * buf, GstBuffer * expected)
|
||||
{
|
||||
GList *tmp;
|
||||
|
||||
g_return_val_if_fail (GST_IS_MEDIA_DESCRIPTOR_PARSER (parser), FALSE);
|
||||
g_return_val_if_fail (((GstMediaDescriptor *) parser)->filenode, FALSE);
|
||||
|
||||
for (tmp = ((GstMediaDescriptor *) parser)->filenode->streams; tmp;
|
||||
tmp = tmp->next) {
|
||||
StreamNode *streamnode = (StreamNode *) tmp->data;
|
||||
|
||||
if (streamnode->pad == pad && streamnode->cframe) {
|
||||
FrameNode *fnode = streamnode->cframe->data;
|
||||
|
||||
streamnode->cframe = streamnode->cframe->next;
|
||||
return frame_node_compare (fnode, buf, expected);
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_media_descriptor_parser_add_taglist (GstMediaDescriptorParser * parser,
|
||||
GstTagList * taglist)
|
||||
|
|
|
@ -69,10 +69,6 @@ gboolean gst_media_descriptor_parser_add_taglist (GstMediaDescriptorParse
|
|||
GstTagList *taglist);
|
||||
gboolean gst_media_descriptor_parser_all_stream_found (GstMediaDescriptorParser *parser);
|
||||
gboolean gst_media_descriptor_parser_all_tags_found (GstMediaDescriptorParser *parser);
|
||||
gboolean gst_media_descriptor_parser_add_frame (GstMediaDescriptorParser *parser,
|
||||
GstPad *pad,
|
||||
GstBuffer *buf,
|
||||
GstBuffer *expected);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue