Commit 0cb5b42d authored by Edward Hervey's avatar Edward Hervey 🤘
Browse files

Remove trivial unused variables detected by CLang static analyzer.

parent cdb03bdc
...@@ -1032,7 +1032,7 @@ gst_dvdemux_handle_pull_seek (GstDVDemux * demux, GstPad * pad, ...@@ -1032,7 +1032,7 @@ gst_dvdemux_handle_pull_seek (GstDVDemux * demux, GstPad * pad,
/* convert input format to TIME */ /* convert input format to TIME */
conv = GST_FORMAT_TIME; conv = GST_FORMAT_TIME;
if (!(res = gst_dvdemux_convert_src_pair (demux, pad, if (!(gst_dvdemux_convert_src_pair (demux, pad,
format, cur, stop, conv, &cur, &stop))) format, cur, stop, conv, &cur, &stop)))
goto no_format; goto no_format;
...@@ -1379,11 +1379,10 @@ gst_dvdemux_demux_frame (GstDVDemux * dvdemux, GstBuffer * buffer) ...@@ -1379,11 +1379,10 @@ gst_dvdemux_demux_frame (GstDVDemux * dvdemux, GstBuffer * buffer)
if (G_UNLIKELY (dvdemux->need_segment)) { if (G_UNLIKELY (dvdemux->need_segment)) {
GstEvent *event; GstEvent *event;
GstFormat format; GstFormat format;
gboolean res;
/* convert to time and store as start/end_timestamp */ /* convert to time and store as start/end_timestamp */
format = GST_FORMAT_TIME; format = GST_FORMAT_TIME;
if (!(res = gst_dvdemux_convert_sink_pair (dvdemux, if (!(gst_dvdemux_convert_sink_pair (dvdemux,
GST_FORMAT_BYTES, dvdemux->byte_segment.start, GST_FORMAT_BYTES, dvdemux->byte_segment.start,
dvdemux->byte_segment.stop, format, dvdemux->byte_segment.stop, format,
&dvdemux->time_segment.start, &dvdemux->time_segment.stop))) &dvdemux->time_segment.start, &dvdemux->time_segment.stop)))
...@@ -1395,7 +1394,7 @@ gst_dvdemux_demux_frame (GstDVDemux * dvdemux, GstBuffer * buffer) ...@@ -1395,7 +1394,7 @@ gst_dvdemux_demux_frame (GstDVDemux * dvdemux, GstBuffer * buffer)
/* calculate current frame number */ /* calculate current frame number */
format = GST_FORMAT_DEFAULT; format = GST_FORMAT_DEFAULT;
if (!(res = gst_dvdemux_src_convert (dvdemux, dvdemux->videosrcpad, if (!(gst_dvdemux_src_convert (dvdemux, dvdemux->videosrcpad,
GST_FORMAT_TIME, dvdemux->time_segment.start, GST_FORMAT_TIME, dvdemux->time_segment.start,
&format, &dvdemux->frame_offset))) &format, &dvdemux->frame_offset)))
goto segment_error; goto segment_error;
......
...@@ -420,10 +420,6 @@ static void ...@@ -420,10 +420,6 @@ static void
gst_gdk_pixbuf_set_property (GObject * object, guint prop_id, gst_gdk_pixbuf_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec) const GValue * value, GParamSpec * pspec)
{ {
GstGdkPixbuf *filter;
filter = GST_GDK_PIXBUF (object);
switch (prop_id) { switch (prop_id) {
case ARG_SILENT: case ARG_SILENT:
/* filter->silent = g_value_get_boolean (value); */ /* filter->silent = g_value_get_boolean (value); */
...@@ -438,10 +434,6 @@ static void ...@@ -438,10 +434,6 @@ static void
gst_gdk_pixbuf_get_property (GObject * object, guint prop_id, gst_gdk_pixbuf_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec) GValue * value, GParamSpec * pspec)
{ {
GstGdkPixbuf *filter;
filter = GST_GDK_PIXBUF (object);
switch (prop_id) { switch (prop_id) {
case ARG_SILENT: case ARG_SILENT:
/* g_value_set_boolean (value, filter->silent); */ /* g_value_set_boolean (value, filter->silent); */
......
...@@ -237,11 +237,9 @@ static GstCaps * ...@@ -237,11 +237,9 @@ static GstCaps *
gst_pixbufscale_transform_caps (GstBaseTransform * trans, gst_pixbufscale_transform_caps (GstBaseTransform * trans,
GstPadDirection direction, GstCaps * caps) GstPadDirection direction, GstCaps * caps)
{ {
GstPixbufScale *pixbufscale;
GstCaps *ret; GstCaps *ret;
int i; int i;
pixbufscale = GST_PIXBUFSCALE (trans);
ret = gst_caps_copy (caps); ret = gst_caps_copy (caps);
for (i = 0; i < gst_caps_get_size (ret); i++) { for (i = 0; i < gst_caps_get_size (ret); i++) {
...@@ -303,13 +301,10 @@ static gboolean ...@@ -303,13 +301,10 @@ static gboolean
gst_pixbufscale_get_unit_size (GstBaseTransform * trans, gst_pixbufscale_get_unit_size (GstBaseTransform * trans,
GstCaps * caps, guint * size) GstCaps * caps, guint * size)
{ {
GstPixbufScale *pixbufscale;
gint width, height; gint width, height;
g_assert (size); g_assert (size);
pixbufscale = GST_PIXBUFSCALE (trans);
if (!parse_caps (caps, &width, &height)) if (!parse_caps (caps, &width, &height))
return FALSE; return FALSE;
......
...@@ -261,11 +261,6 @@ gst_cacasink_setcaps (GstBaseSink * basesink, GstCaps * caps) ...@@ -261,11 +261,6 @@ gst_cacasink_setcaps (GstBaseSink * basesink, GstCaps * caps)
static void static void
gst_cacasink_init (GstCACASink * cacasink) gst_cacasink_init (GstCACASink * cacasink)
{ {
GstPad *pad;
pad = GST_BASE_SINK_PAD (cacasink);
/* gst_pad_set_fixatecaps_function (pad, gst_cacasink_fixate); */
cacasink->screen_width = GST_CACA_DEFAULT_SCREEN_WIDTH; cacasink->screen_width = GST_CACA_DEFAULT_SCREEN_WIDTH;
cacasink->screen_height = GST_CACA_DEFAULT_SCREEN_HEIGHT; cacasink->screen_height = GST_CACA_DEFAULT_SCREEN_HEIGHT;
cacasink->bpp = GST_CACA_DEFAULT_BPP; cacasink->bpp = GST_CACA_DEFAULT_BPP;
......
...@@ -856,10 +856,6 @@ setup_failed: ...@@ -856,10 +856,6 @@ setup_failed:
static gboolean static gboolean
gst_pngdec_sink_activate_pull (GstPad * sinkpad, gboolean active) gst_pngdec_sink_activate_pull (GstPad * sinkpad, gboolean active)
{ {
GstPngDec *pngdec;
pngdec = GST_PNGDEC (GST_OBJECT_PARENT (sinkpad));
if (active) { if (active) {
return gst_pad_start_task (sinkpad, (GstTaskFunction) gst_pngdec_task, return gst_pad_start_task (sinkpad, (GstTaskFunction) gst_pngdec_task,
sinkpad); sinkpad);
......
...@@ -1036,7 +1036,6 @@ gst_dv1394src_get_query_types (GstPad * pad) ...@@ -1036,7 +1036,6 @@ gst_dv1394src_get_query_types (GstPad * pad)
static gboolean static gboolean
gst_dv1394src_query (GstPad * pad, GstQuery * query) gst_dv1394src_query (GstPad * pad, GstQuery * query)
{ {
gboolean res = TRUE;
GstDV1394Src *src; GstDV1394Src *src;
src = GST_DV1394SRC (gst_pad_get_parent (pad)); src = GST_DV1394SRC (gst_pad_get_parent (pad));
...@@ -1050,7 +1049,7 @@ gst_dv1394src_query (GstPad * pad, GstQuery * query) ...@@ -1050,7 +1049,7 @@ gst_dv1394src_query (GstPad * pad, GstQuery * query)
gst_query_parse_position (query, &format, NULL); gst_query_parse_position (query, &format, NULL);
/* bring our current frame to the requested format */ /* bring our current frame to the requested format */
res = gst_pad_query_convert (pad, gst_pad_query_convert (pad,
GST_FORMAT_DEFAULT, src->frame_sequence, &format, &current); GST_FORMAT_DEFAULT, src->frame_sequence, &format, &current);
gst_query_set_position (query, format, current); gst_query_set_position (query, format, current);
...@@ -1062,8 +1061,7 @@ gst_dv1394src_query (GstPad * pad, GstQuery * query) ...@@ -1062,8 +1061,7 @@ gst_dv1394src_query (GstPad * pad, GstQuery * query)
gint64 src_val, dest_val; gint64 src_val, dest_val;
gst_query_parse_convert (query, &src_fmt, &src_val, &dest_fmt, &dest_val); gst_query_parse_convert (query, &src_fmt, &src_val, &dest_fmt, &dest_val);
if (!(res = if (!(gst_dv1394src_convert (pad, src_fmt, src_val, &dest_fmt,
gst_dv1394src_convert (pad, src_fmt, src_val, &dest_fmt,
&dest_val))) &dest_val)))
goto not_supported; goto not_supported;
gst_query_set_convert (query, src_fmt, src_val, dest_fmt, dest_val); gst_query_set_convert (query, src_fmt, src_val, dest_fmt, dest_val);
......
...@@ -480,7 +480,6 @@ gst_hdv1394src_discover_avc_node (GstHDV1394Src * src) ...@@ -480,7 +480,6 @@ gst_hdv1394src_discover_avc_node (GstHDV1394Src * src)
/* loop over all our ports */ /* loop over all our ports */
for (; j < m && node == -1; j++) { for (; j < m && node == -1; j++) {
raw1394handle_t handle; raw1394handle_t handle;
gint n_ports;
struct raw1394_portinfo pinf[16]; struct raw1394_portinfo pinf[16];
/* open the port */ /* open the port */
...@@ -489,7 +488,7 @@ gst_hdv1394src_discover_avc_node (GstHDV1394Src * src) ...@@ -489,7 +488,7 @@ gst_hdv1394src_discover_avc_node (GstHDV1394Src * src)
GST_WARNING ("raw1394 - failed to get handle: %s.\n", strerror (errno)); GST_WARNING ("raw1394 - failed to get handle: %s.\n", strerror (errno));
continue; continue;
} }
if ((n_ports = raw1394_get_port_info (handle, pinf, 16)) < 0) { if (raw1394_get_port_info (handle, pinf, 16) < 0) {
GST_WARNING ("raw1394 - failed to get port info: %s.\n", GST_WARNING ("raw1394 - failed to get port info: %s.\n",
strerror (errno)); strerror (errno));
goto next; goto next;
......
...@@ -527,9 +527,6 @@ static gboolean ...@@ -527,9 +527,6 @@ static gboolean
gst_speex_enc_sink_query (GstPad * pad, GstQuery * query) gst_speex_enc_sink_query (GstPad * pad, GstQuery * query)
{ {
gboolean res = TRUE; gboolean res = TRUE;
GstSpeexEnc *enc;
enc = GST_SPEEX_ENC (GST_PAD_PARENT (pad));
switch (GST_QUERY_TYPE (query)) { switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_CONVERT: case GST_QUERY_CONVERT:
......
...@@ -472,11 +472,6 @@ gst_alpha_set_ayuv (guint8 * src, guint8 * dest, gint width, gint height, ...@@ -472,11 +472,6 @@ gst_alpha_set_ayuv (guint8 * src, guint8 * dest, gint width, gint height,
{ {
gint b_alpha = (gint) (alpha * 255); gint b_alpha = (gint) (alpha * 255);
gint y, x; gint y, x;
gint size;
gint stride;
stride = gst_video_format_get_row_stride (GST_VIDEO_FORMAT_AYUV, 0, width);
size = gst_video_format_get_size (GST_VIDEO_FORMAT_AYUV, width, height);
for (y = 0; y < height; y++) { for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) { for (x = 0; x < width; x++) {
......
...@@ -112,13 +112,10 @@ static GstCaps * ...@@ -112,13 +112,10 @@ static GstCaps *
gst_alpha_color_transform_caps (GstBaseTransform * btrans, gst_alpha_color_transform_caps (GstBaseTransform * btrans,
GstPadDirection direction, GstCaps * caps) GstPadDirection direction, GstCaps * caps)
{ {
GstAlphaColor *alpha = NULL;
const GstCaps *tmpl_caps = NULL; const GstCaps *tmpl_caps = NULL;
GstCaps *result = NULL, *local_caps = NULL; GstCaps *result = NULL, *local_caps = NULL;
guint i; guint i;
alpha = GST_ALPHA_COLOR (btrans);
local_caps = gst_caps_copy (caps); local_caps = gst_caps_copy (caps);
for (i = 0; i < gst_caps_get_size (local_caps); i++) { for (i = 0; i < gst_caps_get_size (local_caps); i++) {
......
...@@ -169,7 +169,6 @@ static GstTagList * ...@@ -169,7 +169,6 @@ static GstTagList *
ape_demux_parse_tags (const guint8 * data, gint size) ape_demux_parse_tags (const guint8 * data, gint size)
{ {
GstTagList *taglist = gst_tag_list_new (); GstTagList *taglist = gst_tag_list_new ();
gboolean have_tag = FALSE;
GST_LOG ("Reading tags from chunk of size %u bytes", size); GST_LOG ("Reading tags from chunk of size %u bytes", size);
...@@ -310,7 +309,6 @@ ape_demux_parse_tags (const guint8 * data, gint size) ...@@ -310,7 +309,6 @@ ape_demux_parse_tags (const guint8 * data, gint size)
gst_tag_list_add_values (taglist, GST_TAG_MERGE_APPEND, gst_tag_list_add_values (taglist, GST_TAG_MERGE_APPEND,
gst_tag, &v, NULL); gst_tag, &v, NULL);
g_value_unset (&v); g_value_unset (&v);
have_tag = TRUE;
} }
} }
GST_DEBUG ("Read tag %s: %s", tag, val); GST_DEBUG ("Read tag %s: %s", tag, val);
......
...@@ -162,8 +162,6 @@ gst_au_parse_reset (GstAuParse * auparse) ...@@ -162,8 +162,6 @@ gst_au_parse_reset (GstAuParse * auparse)
static gboolean static gboolean
gst_au_parse_add_srcpad (GstAuParse * auparse, GstCaps * new_caps) gst_au_parse_add_srcpad (GstAuParse * auparse, GstCaps * new_caps)
{ {
GstPad *srcpad = NULL;
if (auparse->src_caps && gst_caps_is_equal (new_caps, auparse->src_caps)) { if (auparse->src_caps && gst_caps_is_equal (new_caps, auparse->src_caps)) {
GST_LOG_OBJECT (auparse, "same caps, nothing to do"); GST_LOG_OBJECT (auparse, "same caps, nothing to do");
return TRUE; return TRUE;
...@@ -177,8 +175,7 @@ gst_au_parse_add_srcpad (GstAuParse * auparse, GstCaps * new_caps) ...@@ -177,8 +175,7 @@ gst_au_parse_add_srcpad (GstAuParse * auparse, GstCaps * new_caps)
} }
if (auparse->srcpad == NULL) { if (auparse->srcpad == NULL) {
srcpad = auparse->srcpad = auparse->srcpad = gst_pad_new_from_static_template (&src_template, "src");
gst_pad_new_from_static_template (&src_template, "src");
g_return_val_if_fail (auparse->srcpad != NULL, FALSE); g_return_val_if_fail (auparse->srcpad != NULL, FALSE);
#if 0 #if 0
...@@ -500,7 +497,6 @@ gst_au_parse_src_convert (GstAuParse * auparse, GstFormat src_format, ...@@ -500,7 +497,6 @@ gst_au_parse_src_convert (GstAuParse * auparse, GstFormat src_format,
gint64 srcval, GstFormat dest_format, gint64 * destval) gint64 srcval, GstFormat dest_format, gint64 * destval)
{ {
gboolean ret = TRUE; gboolean ret = TRUE;
gint64 offset;
guint samplesize, rate; guint samplesize, rate;
if (dest_format == src_format) { if (dest_format == src_format) {
...@@ -510,7 +506,6 @@ gst_au_parse_src_convert (GstAuParse * auparse, GstFormat src_format, ...@@ -510,7 +506,6 @@ gst_au_parse_src_convert (GstAuParse * auparse, GstFormat src_format,
GST_OBJECT_LOCK (auparse); GST_OBJECT_LOCK (auparse);
samplesize = auparse->sample_size; samplesize = auparse->sample_size;
offset = auparse->offset;
rate = auparse->samplerate; rate = auparse->samplerate;
GST_OBJECT_UNLOCK (auparse); GST_OBJECT_UNLOCK (auparse);
......
...@@ -156,7 +156,7 @@ gst_quarktv_transform (GstBaseTransform * trans, GstBuffer * in, ...@@ -156,7 +156,7 @@ gst_quarktv_transform (GstBaseTransform * trans, GstBuffer * in,
{ {
GstQuarkTV *filter; GstQuarkTV *filter;
gint area; gint area;
guint32 *src, *dest; guint32 *dest;
GstFlowReturn ret = GST_FLOW_OK; GstFlowReturn ret = GST_FLOW_OK;
filter = GST_QUARKTV (trans); filter = GST_QUARKTV (trans);
...@@ -164,7 +164,6 @@ gst_quarktv_transform (GstBaseTransform * trans, GstBuffer * in, ...@@ -164,7 +164,6 @@ gst_quarktv_transform (GstBaseTransform * trans, GstBuffer * in,
gst_buffer_copy_metadata (out, in, GST_BUFFER_COPY_TIMESTAMPS); gst_buffer_copy_metadata (out, in, GST_BUFFER_COPY_TIMESTAMPS);
area = filter->area; area = filter->area;
src = (guint32 *) GST_BUFFER_DATA (in);
dest = (guint32 *) GST_BUFFER_DATA (out); dest = (guint32 *) GST_BUFFER_DATA (out);
if (G_UNLIKELY (filter->planetable == NULL)) if (G_UNLIKELY (filter->planetable == NULL))
......
...@@ -359,7 +359,7 @@ flx_decode_brun (GstFlxDec * flxdec, guchar * data, guchar * dest) ...@@ -359,7 +359,7 @@ flx_decode_brun (GstFlxDec * flxdec, guchar * data, guchar * dest)
static void static void
flx_decode_delta_fli (GstFlxDec * flxdec, guchar * data, guchar * dest) flx_decode_delta_fli (GstFlxDec * flxdec, guchar * data, guchar * dest)
{ {
gulong count, packets, lines, start_line, start_l; gulong count, packets, lines, start_line;
guchar *start_p, x; guchar *start_p, x;
g_return_if_fail (flxdec != NULL); g_return_if_fail (flxdec != NULL);
...@@ -376,7 +376,6 @@ flx_decode_delta_fli (GstFlxDec * flxdec, guchar * data, guchar * dest) ...@@ -376,7 +376,6 @@ flx_decode_delta_fli (GstFlxDec * flxdec, guchar * data, guchar * dest)
/* start position of delta */ /* start position of delta */
dest += (flxdec->hdr.width * start_line); dest += (flxdec->hdr.width * start_line);
start_p = dest; start_p = dest;
start_l = lines;
while (lines--) { while (lines--) {
/* packet count */ /* packet count */
......
...@@ -234,8 +234,6 @@ gst_icydemux_dispose (GObject * object) ...@@ -234,8 +234,6 @@ gst_icydemux_dispose (GObject * object)
static gboolean static gboolean
gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps) gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps)
{ {
GstPad *srcpad = NULL;
if (icydemux->src_caps == NULL || if (icydemux->src_caps == NULL ||
!gst_caps_is_equal (new_caps, icydemux->src_caps)) { !gst_caps_is_equal (new_caps, icydemux->src_caps)) {
gst_caps_replace (&(icydemux->src_caps), new_caps); gst_caps_replace (&(icydemux->src_caps), new_caps);
...@@ -251,7 +249,7 @@ gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps) ...@@ -251,7 +249,7 @@ gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps)
} }
if (icydemux->srcpad == NULL) { if (icydemux->srcpad == NULL) {
srcpad = icydemux->srcpad = icydemux->srcpad =
gst_pad_new_from_template (gst_element_class_get_pad_template gst_pad_new_from_template (gst_element_class_get_pad_template
(GST_ELEMENT_GET_CLASS (icydemux), "src"), "src"); (GST_ELEMENT_GET_CLASS (icydemux), "src"), "src");
g_return_val_if_fail (icydemux->srcpad != NULL, FALSE); g_return_val_if_fail (icydemux->srcpad != NULL, FALSE);
......
...@@ -1143,16 +1143,12 @@ forward_event_func (GstPad * pad, GValue * ret, GstEvent * event) ...@@ -1143,16 +1143,12 @@ forward_event_func (GstPad * pad, GValue * ret, GstEvent * event)
static gboolean static gboolean
forward_event (GstInterleave * self, GstEvent * event) forward_event (GstInterleave * self, GstEvent * event)
{ {
gboolean ret;
GstIterator *it; GstIterator *it;
GValue vret = { 0 }; GValue vret = { 0 };
GST_LOG_OBJECT (self, "Forwarding event %p (%s)", event, GST_LOG_OBJECT (self, "Forwarding event %p (%s)", event,
GST_EVENT_TYPE_NAME (event)); GST_EVENT_TYPE_NAME (event));
ret = TRUE;
g_value_init (&vret, G_TYPE_BOOLEAN); g_value_init (&vret, G_TYPE_BOOLEAN);
g_value_set_boolean (&vret, TRUE); g_value_set_boolean (&vret, TRUE);
it = gst_element_iterate_sink_pads (GST_ELEMENT_CAST (self)); it = gst_element_iterate_sink_pads (GST_ELEMENT_CAST (self));
...@@ -1161,9 +1157,7 @@ forward_event (GstInterleave * self, GstEvent * event) ...@@ -1161,9 +1157,7 @@ forward_event (GstInterleave * self, GstEvent * event)
gst_iterator_free (it); gst_iterator_free (it);
gst_event_unref (event); gst_event_unref (event);
ret = g_value_get_boolean (&vret); return g_value_get_boolean (&vret);
return ret;
} }
......
...@@ -497,10 +497,8 @@ gst_matroska_mux_reset (GstElement * element) ...@@ -497,10 +497,8 @@ gst_matroska_mux_reset (GstElement * element)
for (walk = mux->collect->data; walk; walk = g_slist_next (walk)) { for (walk = mux->collect->data; walk; walk = g_slist_next (walk)) {
GstMatroskaPad *collect_pad; GstMatroskaPad *collect_pad;
GstPad *thepad;
collect_pad = (GstMatroskaPad *) walk->data; collect_pad = (GstMatroskaPad *) walk->data;
thepad = collect_pad->collect.pad;
/* reset collect pad to pristine state */ /* reset collect pad to pristine state */
gst_matroska_pad_reset (collect_pad, FALSE); gst_matroska_pad_reset (collect_pad, FALSE);
...@@ -2246,7 +2244,7 @@ gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad) ...@@ -2246,7 +2244,7 @@ gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad)
{ {
GstEbmlWrite *ebml = mux->ebml_write; GstEbmlWrite *ebml = mux->ebml_write;
GstBuffer *buf, *hdr; GstBuffer *buf, *hdr;
guint64 cluster, blockgroup; guint64 blockgroup;
gboolean write_duration; gboolean write_duration;
gint16 relative_timestamp; gint16 relative_timestamp;
gint64 relative_timestamp64; gint64 relative_timestamp64;
...@@ -2317,7 +2315,6 @@ gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad) ...@@ -2317,7 +2315,6 @@ gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad)
GST_BUFFER_TIMESTAMP (buf) / mux->time_scale); GST_BUFFER_TIMESTAMP (buf) / mux->time_scale);
mux->cluster_time = GST_BUFFER_TIMESTAMP (buf); mux->cluster_time = GST_BUFFER_TIMESTAMP (buf);
} }
cluster = mux->cluster;
/* update duration of this track */ /* update duration of this track */
if (GST_BUFFER_DURATION_IS_VALID (buf)) if (GST_BUFFER_DURATION_IS_VALID (buf))
......
...@@ -115,10 +115,6 @@ static void ...@@ -115,10 +115,6 @@ static void
gst_multi_file_sink_init (GstMultiFileSink * multifilesink, gst_multi_file_sink_init (GstMultiFileSink * multifilesink,
GstMultiFileSinkClass * g_class) GstMultiFileSinkClass * g_class)
{ {
GstPad *pad;
pad = GST_BASE_SINK_PAD (multifilesink);
multifilesink->filename = g_strdup (DEFAULT_LOCATION); multifilesink->filename = g_strdup (DEFAULT_LOCATION);
multifilesink->index = DEFAULT_INDEX; multifilesink->index = DEFAULT_INDEX;
......
...@@ -145,10 +145,6 @@ static void ...@@ -145,10 +145,6 @@ static void
gst_multi_file_src_init (GstMultiFileSrc * multifilesrc, gst_multi_file_src_init (GstMultiFileSrc * multifilesrc,
GstMultiFileSrcClass * g_class) GstMultiFileSrcClass * g_class)
{ {
GstPad *pad;
pad = GST_BASE_SRC_PAD (multifilesrc);
multifilesrc->index = DEFAULT_INDEX; multifilesrc->index = DEFAULT_INDEX;
multifilesrc->filename = g_strdup (DEFAULT_LOCATION); multifilesrc->filename = g_strdup (DEFAULT_LOCATION);
multifilesrc->successful_read = FALSE; multifilesrc->successful_read = FALSE;
......
...@@ -245,11 +245,8 @@ static gboolean ...@@ -245,11 +245,8 @@ static gboolean
gst_rtp_xqt_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps) gst_rtp_xqt_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
{ {
GstStructure *structure; GstStructure *structure;
GstRtpXQTDepay *rtpxqtdepay;
gint clock_rate = 90000; /* default */ gint clock_rate = 90000; /* default */
rtpxqtdepay = GST_RTP_XQT_DEPAY (depayload);
structure = gst_caps_get_structure (caps, 0); structure = gst_caps_get_structure (caps, 0);
gst_structure_get_int (structure, "clock-rate", &clock_rate); gst_structure_get_int (structure, "clock-rate", &clock_rate);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment