decodebin2: Fix type-punning warning

This commit is contained in:
Jan Schmidt 2009-10-08 00:17:21 +01:00
parent 9bd6fe41cb
commit 592b8ecb09

View file

@ -2131,7 +2131,7 @@ gst_decode_group_control_demuxer_pad (GstDecodeGroup * group, GstPad * pad)
it = gst_pad_iterate_internal_links (sinkpad); it = gst_pad_iterate_internal_links (sinkpad);
if (!it || (gst_iterator_next (it, (gpointer *) & srcpad)) != GST_ITERATOR_OK if (!it || (gst_iterator_next (it, (gpointer) & srcpad)) != GST_ITERATOR_OK
|| srcpad == NULL) { || srcpad == NULL) {
GST_ERROR_OBJECT (dbin, GST_ERROR_OBJECT (dbin,
"Couldn't get srcpad from multiqueue for sinkpad %" GST_PTR_FORMAT, "Couldn't get srcpad from multiqueue for sinkpad %" GST_PTR_FORMAT,
@ -2267,9 +2267,8 @@ gst_decode_chain_handle_eos (GstDecodeChain * eos_chain)
break; break;
} }
drained = drained = chain->active_group ?
chain->active_group ? gst_decode_group_is_drained (chain-> gst_decode_group_is_drained (chain->active_group) : TRUE;
active_group) : TRUE;
/* Now either group == NULL and chain == dbin->decode_chain /* Now either group == NULL and chain == dbin->decode_chain
* or chain is the lowest chain that has a non-drained group */ * or chain is the lowest chain that has a non-drained group */