Revert "tspacketizer: ensure that a null pointer isn't accessed"

This reverts commit 6efd611b8c.

Also this extra check won't be needed if it's fixed the race by moving
flush actions to FLUSH_STOP.
This commit is contained in:
Josep Torra 2012-11-10 19:52:46 +01:00
parent 80dd130fb0
commit 996da425a9

View file

@ -2624,7 +2624,6 @@ mpegts_packetizer_next_packet (MpegTSPacketizer2 * packetizer,
priv->mapped =
(guint8 *) gst_adapter_map (packetizer->adapter, priv->mapped_size);
priv->offset = 0;
g_return_val_if_fail (priv->mapped, PACKET_NEED_MORE);
}
packet->data_start = priv->mapped + priv->offset;