mpegts: remove storage of never used values

Both _parse_atsc_mgt() and  _parse_atsc_vct () change the value of the variable
data just before returning. The new value is never used since data is a pointer
declared at the beginning of the function and going out of scope just after the
new value is stored.

https://bugzilla.gnome.org/show_bug.cgi?id=739404
This commit is contained in:
Luis de Bethencourt 2014-10-30 14:27:38 +00:00
parent 3e452352f0
commit f76d1a2514

View file

@ -193,7 +193,6 @@ _parse_atsc_vct (GstMpegtsSection * section)
gst_mpegts_parse_descriptors (data, descriptors_loop_length);
if (vct->descriptors == NULL)
goto error;
data += descriptors_loop_length;
return (gpointer) vct;
@ -361,7 +360,6 @@ _parse_atsc_mgt (GstMpegtsSection * section)
}
mgt->descriptors =
gst_mpegts_parse_descriptors (data, descriptors_loop_length);
data += descriptors_loop_length;
return (gpointer) mgt;