assert: g_assert_not_reached() cannot replace return statement

Fix build with assert being turned off.
This commit is contained in:
Stefan Kost 2010-01-22 16:55:14 +02:00
parent 64545310d4
commit da70785dcd
2 changed files with 3 additions and 2 deletions

View file

@ -1880,10 +1880,10 @@ gst_asf_demux_get_var_length (guint8 type, guint8 ** p_data, guint64 * p_size)
return gst_asf_demux_get_uint32 (p_data, p_size);
default:
g_assert_not_reached ();
break;
}
g_assert_not_reached ();
return 0;
}
static gboolean

View file

@ -356,4 +356,5 @@ gst_mpeg_packetize_read (GstMPEGPacketize * packetize, GstBuffer ** outbuf)
}
g_assert_not_reached ();
return GST_FLOW_ERROR;
}