mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-04 05:35:53 +00:00
tta: Remove dead assignments and useless variable
This commit is contained in:
parent
a4c4debf5d
commit
ba40212297
|
@ -199,10 +199,8 @@ static void
|
||||||
gst_tta_dec_class_init (GstTtaDecClass * klass)
|
gst_tta_dec_class_init (GstTtaDecClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
gstelement_class = (GstElementClass *) klass;
|
|
||||||
|
|
||||||
parent = g_type_class_peek_parent (klass);
|
parent = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
|
|
|
@ -319,7 +319,6 @@ gst_tta_parse_activate_pull (GstPad * pad, gboolean active)
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_tta_parse_parse_header (GstTtaParse * ttaparse)
|
gst_tta_parse_parse_header (GstTtaParse * ttaparse)
|
||||||
{
|
{
|
||||||
GstFlowReturn res;
|
|
||||||
guchar *data;
|
guchar *data;
|
||||||
GstBuffer *buf = NULL;
|
GstBuffer *buf = NULL;
|
||||||
guint32 crc;
|
guint32 crc;
|
||||||
|
@ -330,8 +329,7 @@ gst_tta_parse_parse_header (GstTtaParse * ttaparse)
|
||||||
guint32 offset;
|
guint32 offset;
|
||||||
GstEvent *discont;
|
GstEvent *discont;
|
||||||
|
|
||||||
if ((res = gst_pad_pull_range (ttaparse->sinkpad,
|
if (gst_pad_pull_range (ttaparse->sinkpad, 0, 22, &buf) != GST_FLOW_OK)
|
||||||
0, 22, &buf)) != GST_FLOW_OK)
|
|
||||||
goto pull_fail;
|
goto pull_fail;
|
||||||
data = GST_BUFFER_DATA (buf);
|
data = GST_BUFFER_DATA (buf);
|
||||||
ttaparse->channels = GST_READ_UINT16_LE (data + 6);
|
ttaparse->channels = GST_READ_UINT16_LE (data + 6);
|
||||||
|
@ -349,8 +347,8 @@ gst_tta_parse_parse_header (GstTtaParse * ttaparse)
|
||||||
|
|
||||||
ttaparse->index =
|
ttaparse->index =
|
||||||
(GstTtaIndex *) g_malloc (num_frames * sizeof (GstTtaIndex));
|
(GstTtaIndex *) g_malloc (num_frames * sizeof (GstTtaIndex));
|
||||||
if ((res = gst_pad_pull_range (ttaparse->sinkpad,
|
if (gst_pad_pull_range (ttaparse->sinkpad,
|
||||||
22, num_frames * 4 + 4, &buf)) != GST_FLOW_OK)
|
22, num_frames * 4 + 4, &buf) != GST_FLOW_OK)
|
||||||
goto pull_fail;
|
goto pull_fail;
|
||||||
data = GST_BUFFER_DATA (buf);
|
data = GST_BUFFER_DATA (buf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue