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:
Thibault Saunier 2014-10-03 18:53:42 +02:00 committed by Mathieu Duponchelle
parent a3513fc952
commit b0d39c1c45
2 changed files with 0 additions and 54 deletions

View file

@ -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 static void
on_end_element_cb (GMarkupParseContext * context, on_end_element_cb (GMarkupParseContext * context,
const gchar * element_name, gpointer user_data, GError ** error) const gchar * element_name, gpointer user_data, GError ** error)
@ -475,30 +449,6 @@ gst_media_descriptor_parser_all_stream_found (GstMediaDescriptorParser * parser)
return TRUE; 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 gboolean
gst_media_descriptor_parser_add_taglist (GstMediaDescriptorParser * parser, gst_media_descriptor_parser_add_taglist (GstMediaDescriptorParser * parser,
GstTagList * taglist) GstTagList * taglist)

View file

@ -69,10 +69,6 @@ gboolean gst_media_descriptor_parser_add_taglist (GstMediaDescriptorParse
GstTagList *taglist); GstTagList *taglist);
gboolean gst_media_descriptor_parser_all_stream_found (GstMediaDescriptorParser *parser); 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_all_tags_found (GstMediaDescriptorParser *parser);
gboolean gst_media_descriptor_parser_add_frame (GstMediaDescriptorParser *parser,
GstPad *pad,
GstBuffer *buf,
GstBuffer *expected);
G_END_DECLS G_END_DECLS