mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
ext/faad/gstfaad.c: Remove unused caps cruft from chain function altogether.
Original commit message from CVS: * ext/faad/gstfaad.c: (gst_faad_update_caps), (gst_faad_chain): Remove unused caps cruft from chain function altogether.
This commit is contained in:
parent
d47f97b0d4
commit
9b3c826eb9
2 changed files with 11 additions and 14 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-05-17 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/faad/gstfaad.c: (gst_faad_update_caps), (gst_faad_chain):
|
||||
Remove unused caps cruft from chain function altogether.
|
||||
|
||||
2006-05-17 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* ext/faad/gstfaad.c: (gst_faad_chain):
|
||||
|
|
|
@ -952,10 +952,10 @@ gst_faad_src_query (GstPad * pad, GstQuery * query)
|
|||
|
||||
|
||||
static gboolean
|
||||
gst_faad_update_caps (GstFaad * faad, faacDecFrameInfo * info,
|
||||
GstCaps ** p_caps)
|
||||
gst_faad_update_caps (GstFaad * faad, faacDecFrameInfo * info)
|
||||
{
|
||||
GstAudioChannelPosition *pos;
|
||||
gboolean ret;
|
||||
GstCaps *caps;
|
||||
|
||||
/* store new negotiation information */
|
||||
|
@ -985,14 +985,10 @@ gst_faad_update_caps (GstFaad * faad, faacDecFrameInfo * info,
|
|||
|
||||
GST_DEBUG ("New output caps: %" GST_PTR_FORMAT, caps);
|
||||
|
||||
if (!gst_pad_set_caps (faad->srcpad, caps)) {
|
||||
gst_caps_unref (caps);
|
||||
return FALSE;
|
||||
}
|
||||
ret = gst_pad_set_caps (faad->srcpad, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
*p_caps = caps;
|
||||
|
||||
return TRUE;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1088,7 +1084,6 @@ gst_faad_chain (GstPad * pad, GstBuffer * buffer)
|
|||
guchar *input_data;
|
||||
GstFaad *faad;
|
||||
GstBuffer *outbuf;
|
||||
GstCaps *caps = NULL;
|
||||
faacDecFrameInfo info;
|
||||
void *out;
|
||||
gboolean run_loop = TRUE;
|
||||
|
@ -1246,7 +1241,7 @@ gst_faad_chain (GstPad * pad, GstBuffer * buffer)
|
|||
}
|
||||
|
||||
if (fmt_change) {
|
||||
if (!gst_faad_update_caps (faad, &info, &caps)) {
|
||||
if (!gst_faad_update_caps (faad, &info)) {
|
||||
GST_ELEMENT_ERROR (faad, CORE, NEGOTIATION, (NULL),
|
||||
("Setting caps on source pad failed"));
|
||||
ret = GST_FLOW_ERROR;
|
||||
|
@ -1303,9 +1298,6 @@ next:
|
|||
|
||||
out:
|
||||
|
||||
if (caps)
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_buffer_unref (buffer);
|
||||
gst_object_unref (faad);
|
||||
|
||||
|
|
Loading…
Reference in a new issue