summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-09-15 23:08:13 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-09-19 12:32:17 +0200
commit69aab9870204943552053c4987d7bf1f2ed75b22 (patch)
tree8a3063ec108e0c7ad7e36529ca6bddd0d31b9d2e /gst
parent0ac7e16066a83eaa1aa2b7d5d90aab32a55c763b (diff)
downloadgstreamer-plugins-bad-69aab9870204943552053c4987d7bf1f2ed75b22.tar.gz
mpegtspacketizer: Remove g_return_if_fail
It's overkill for code only used by one element.
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegdemux/mpegtspacketizer.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c
index 38c26993d..37f90906c 100644
--- a/gst/mpegdemux/mpegtspacketizer.c
+++ b/gst/mpegdemux/mpegtspacketizer.c
@@ -1924,17 +1924,12 @@ mpegts_packetizer_new ()
void
mpegts_packetizer_push (MpegTSPacketizer * packetizer, GstBuffer * buffer)
{
- g_return_if_fail (GST_IS_MPEGTS_PACKETIZER (packetizer));
- g_return_if_fail (GST_IS_BUFFER (buffer));
-
gst_adapter_push (packetizer->adapter, buffer);
}
gboolean
mpegts_packetizer_has_packets (MpegTSPacketizer * packetizer)
{
- g_return_val_if_fail (GST_IS_MPEGTS_PACKETIZER (packetizer), FALSE);
-
return gst_adapter_available (packetizer->adapter) >= 188;
}
@@ -1945,9 +1940,6 @@ mpegts_packetizer_next_packet (MpegTSPacketizer * packetizer,
guint8 sync_byte;
gboolean ret = FALSE;
- g_return_val_if_fail (GST_IS_MPEGTS_PACKETIZER (packetizer), FALSE);
- g_return_val_if_fail (packet != NULL, FALSE);
-
packet->buffer = NULL;
while (gst_adapter_available (packetizer->adapter) >= 188) {
sync_byte = *gst_adapter_peek (packetizer->adapter, 1);
@@ -1972,9 +1964,6 @@ void
mpegts_packetizer_clear_packet (MpegTSPacketizer * packetizer,
MpegTSPacketizerPacket * packet)
{
- g_return_if_fail (GST_IS_MPEGTS_PACKETIZER (packetizer));
- g_return_if_fail (packet != NULL);
-
if (packet->buffer)
gst_buffer_unref (packet->buffer);
packet->buffer = NULL;
@@ -1997,10 +1986,6 @@ mpegts_packetizer_push_section (MpegTSPacketizer * packetizer,
GstBuffer *sub_buf;
guint8 *data;
- g_return_val_if_fail (GST_IS_MPEGTS_PACKETIZER (packetizer), FALSE);
- g_return_val_if_fail (packet != NULL, FALSE);
- g_return_val_if_fail (section != NULL, FALSE);
-
data = packet->data;
section->pid = packet->pid;