mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-12 01:05:47 +00:00
Fixed some warnings.
Original commit message from CVS: Fixed some warnings.
This commit is contained in:
parent
42ebe8b588
commit
3c18e42b39
7 changed files with 7 additions and 38 deletions
|
@ -63,7 +63,6 @@ void have_type(GstElement *element, GstCaps *caps, GstCaps **private_caps) {
|
||||||
|
|
||||||
int main (int argc,char *argv[]) {
|
int main (int argc,char *argv[]) {
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
int i;
|
|
||||||
|
|
||||||
gst_init(&argc,&argv);
|
gst_init(&argc,&argv);
|
||||||
|
|
||||||
|
|
|
@ -242,6 +242,8 @@ gst_autoplug_caps_find_cost (gpointer src, gpointer dest, gpointer data)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
res = gst_autoplug_can_match ((GstElementFactory *)src, (GstElementFactory *)dest);
|
res = gst_autoplug_can_match ((GstElementFactory *)src, (GstElementFactory *)dest);
|
||||||
|
//GST_INFO (GST_CAT_AUTOPLUG_ATTEMPT,"factory %s to factory %s %d",
|
||||||
|
// ((GstElementFactory *)src)->name, ((GstElementFactory *)dest)->name, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
|
|
|
@ -671,7 +671,7 @@ gst_bin_iterate (GstBin *bin)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* out internal element fired EOS, we decrement the number of pending EOS childs */
|
/* out internal element fired EOS, we decrement the number of pending EOS childs */
|
||||||
static void
|
G_GNUC_UNUSED static void
|
||||||
gst_bin_received_eos (GstElement *element, GstBin *bin)
|
gst_bin_received_eos (GstElement *element, GstBin *bin)
|
||||||
{
|
{
|
||||||
GST_INFO_ELEMENT (GST_CAT_PLANNING, bin, "child %s fired eos, pending %d", GST_ELEMENT_NAME (element),
|
GST_INFO_ELEMENT (GST_CAT_PLANNING, bin, "child %s fired eos, pending %d", GST_ELEMENT_NAME (element),
|
||||||
|
|
|
@ -1304,7 +1304,7 @@ gst_pad_renegotiate (GstPad *pad)
|
||||||
GST_DEBUG (GST_CAT_NEGOTIATION, "pads aggreed on caps :)\n");
|
GST_DEBUG (GST_CAT_NEGOTIATION, "pads aggreed on caps :)\n");
|
||||||
|
|
||||||
newcaps = GST_PAD_CAPS (pad);
|
newcaps = GST_PAD_CAPS (pad);
|
||||||
g_return_val_if_fail(newcaps != NULL, FALSE); // FIXME is this valid?
|
//g_return_val_if_fail(newcaps != NULL, FALSE); // FIXME is this valid?
|
||||||
|
|
||||||
/* here we have some sort of aggreement of the caps */
|
/* here we have some sort of aggreement of the caps */
|
||||||
GST_PAD_CAPS (currentpad) = gst_caps_ref (newcaps);
|
GST_PAD_CAPS (currentpad) = gst_caps_ref (newcaps);
|
||||||
|
|
|
@ -198,9 +198,6 @@ gst_queue_handle_negotiate_src (GstPad *pad, GstCaps **caps, gpointer *data)
|
||||||
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
|
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
|
||||||
|
|
||||||
return gst_pad_negotiate_proxy (pad, queue->sinkpad, caps);
|
return gst_pad_negotiate_proxy (pad, queue->sinkpad, caps);
|
||||||
|
|
||||||
|
|
||||||
//return GST_PAD_NEGOTIATE_FAIL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadNegotiateReturn
|
static GstPadNegotiateReturn
|
||||||
|
@ -210,19 +207,7 @@ gst_queue_handle_negotiate_sink (GstPad *pad, GstCaps **caps, gpointer *data)
|
||||||
|
|
||||||
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
|
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
|
||||||
|
|
||||||
/*
|
return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
|
||||||
if (counter == 0) {
|
|
||||||
*caps = NULL;
|
|
||||||
return GST_PAD_NEGOTIATE_TRY;
|
|
||||||
}
|
|
||||||
if (*caps) {
|
|
||||||
*/
|
|
||||||
return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
|
|
||||||
/*
|
|
||||||
}
|
|
||||||
|
|
||||||
return GST_PAD_NEGOTIATE_FAIL;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -271,7 +256,6 @@ static void
|
||||||
gst_queue_chain (GstPad *pad, GstBuffer *buf)
|
gst_queue_chain (GstPad *pad, GstBuffer *buf)
|
||||||
{
|
{
|
||||||
GstQueue *queue;
|
GstQueue *queue;
|
||||||
gboolean tosignal = FALSE;
|
|
||||||
const guchar *name;
|
const guchar *name;
|
||||||
|
|
||||||
g_return_if_fail (pad != NULL);
|
g_return_if_fail (pad != NULL);
|
||||||
|
|
|
@ -314,7 +314,7 @@ gst_schedule_cothreaded_chain (GstBin *bin, GstScheduleChain *chain) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
G_GNUC_UNUSED static void
|
||||||
gst_schedule_chained_chain (GstBin *bin, _GstBinChain *chain) {
|
gst_schedule_chained_chain (GstBin *bin, _GstBinChain *chain) {
|
||||||
GList *elements;
|
GList *elements;
|
||||||
GstElement *element;
|
GstElement *element;
|
||||||
|
|
|
@ -198,9 +198,6 @@ gst_queue_handle_negotiate_src (GstPad *pad, GstCaps **caps, gpointer *data)
|
||||||
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
|
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
|
||||||
|
|
||||||
return gst_pad_negotiate_proxy (pad, queue->sinkpad, caps);
|
return gst_pad_negotiate_proxy (pad, queue->sinkpad, caps);
|
||||||
|
|
||||||
|
|
||||||
//return GST_PAD_NEGOTIATE_FAIL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadNegotiateReturn
|
static GstPadNegotiateReturn
|
||||||
|
@ -210,19 +207,7 @@ gst_queue_handle_negotiate_sink (GstPad *pad, GstCaps **caps, gpointer *data)
|
||||||
|
|
||||||
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
|
queue = GST_QUEUE (GST_OBJECT_PARENT (pad));
|
||||||
|
|
||||||
/*
|
return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
|
||||||
if (counter == 0) {
|
|
||||||
*caps = NULL;
|
|
||||||
return GST_PAD_NEGOTIATE_TRY;
|
|
||||||
}
|
|
||||||
if (*caps) {
|
|
||||||
*/
|
|
||||||
return gst_pad_negotiate_proxy (pad, queue->srcpad, caps);
|
|
||||||
/*
|
|
||||||
}
|
|
||||||
|
|
||||||
return GST_PAD_NEGOTIATE_FAIL;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -271,7 +256,6 @@ static void
|
||||||
gst_queue_chain (GstPad *pad, GstBuffer *buf)
|
gst_queue_chain (GstPad *pad, GstBuffer *buf)
|
||||||
{
|
{
|
||||||
GstQueue *queue;
|
GstQueue *queue;
|
||||||
gboolean tosignal = FALSE;
|
|
||||||
const guchar *name;
|
const guchar *name;
|
||||||
|
|
||||||
g_return_if_fail (pad != NULL);
|
g_return_if_fail (pad != NULL);
|
||||||
|
|
Loading…
Reference in a new issue