mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Fix some unused-but-set-variable warnings with gcc 4.6
This commit is contained in:
parent
fb0222ea67
commit
5d6bdf6052
14 changed files with 13 additions and 137 deletions
|
@ -119,10 +119,8 @@ static void
|
||||||
gst_gsmdec_class_init (GstGSMDec * klass)
|
gst_gsmdec_class_init (GstGSMDec * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
gstelement_class = (GstElementClass *) klass;
|
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
|
|
|
@ -113,10 +113,8 @@ static void
|
||||||
gst_gsmenc_class_init (GstGSMEnc * klass)
|
gst_gsmenc_class_init (GstGSMEnc * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
gstelement_class = (GstElementClass *) klass;
|
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,6 @@ gst_trm_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstTRM *trm;
|
GstTRM *trm;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
const gchar *mimetype;
|
|
||||||
gint width;
|
gint width;
|
||||||
|
|
||||||
trm = GST_TRM (gst_pad_get_parent (pad));
|
trm = GST_TRM (gst_pad_get_parent (pad));
|
||||||
|
@ -180,7 +179,6 @@ gst_trm_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
structure = gst_caps_get_structure (caps, 0);
|
structure = gst_caps_get_structure (caps, 0);
|
||||||
mimetype = gst_structure_get_name (structure);
|
|
||||||
|
|
||||||
if (!gst_structure_get_int (structure, "depth", &trm->depth) ||
|
if (!gst_structure_get_int (structure, "depth", &trm->depth) ||
|
||||||
!gst_structure_get_int (structure, "width", &width) ||
|
!gst_structure_get_int (structure, "width", &width) ||
|
||||||
|
|
|
@ -118,10 +118,8 @@ static void
|
||||||
rsn_dvdbin_class_init (RsnDvdBinClass * klass)
|
rsn_dvdbin_class_init (RsnDvdBinClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
gstelement_class = (GstElementClass *) klass;
|
|
||||||
|
|
||||||
gobject_class->finalize = rsn_dvdbin_finalize;
|
gobject_class->finalize = rsn_dvdbin_finalize;
|
||||||
gobject_class->set_property = rsn_dvdbin_set_property;
|
gobject_class->set_property = rsn_dvdbin_set_property;
|
||||||
|
|
|
@ -73,10 +73,8 @@ static void
|
||||||
rsn_parsetter_class_init (RsnParSetterClass * klass)
|
rsn_parsetter_class_init (RsnParSetterClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *gstelement_class;
|
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
gstelement_class = (GstElementClass *) klass;
|
|
||||||
|
|
||||||
gobject_class->finalize = rsn_parsetter_finalize;
|
gobject_class->finalize = rsn_parsetter_finalize;
|
||||||
}
|
}
|
||||||
|
|
|
@ -840,7 +840,6 @@ gst_aiff_parse_stream_headers (GstAiffParse * aiff)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_MAKE_FOURCC ('S', 'S', 'N', 'D'):{
|
case GST_MAKE_FOURCC ('S', 'S', 'N', 'D'):{
|
||||||
GstFormat fmt;
|
|
||||||
GstBuffer *ssndbuf = NULL;
|
GstBuffer *ssndbuf = NULL;
|
||||||
const guint8 *ssnddata = NULL;
|
const guint8 *ssnddata = NULL;
|
||||||
guint32 datasize;
|
guint32 datasize;
|
||||||
|
@ -876,7 +875,6 @@ gst_aiff_parse_stream_headers (GstAiffParse * aiff)
|
||||||
|
|
||||||
aiff->datastart = aiff->offset + aiff->ssnd_offset;
|
aiff->datastart = aiff->offset + aiff->ssnd_offset;
|
||||||
/* file might be truncated */
|
/* file might be truncated */
|
||||||
fmt = GST_FORMAT_BYTES;
|
|
||||||
if (upstream_size) {
|
if (upstream_size) {
|
||||||
size = MIN (datasize, (upstream_size - aiff->datastart));
|
size = MIN (datasize, (upstream_size - aiff->datastart));
|
||||||
}
|
}
|
||||||
|
|
|
@ -430,13 +430,6 @@ gst_csp_base_init (gpointer klass)
|
||||||
void
|
void
|
||||||
gst_csp_dispose (GObject * object)
|
gst_csp_dispose (GObject * object)
|
||||||
{
|
{
|
||||||
GstCsp *csp;
|
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_CSP (object));
|
|
||||||
csp = GST_CSP (object);
|
|
||||||
|
|
||||||
/* clean up as possible. may be called multiple times */
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,13 +25,6 @@
|
||||||
#include <gst/base/gstbasesink.h>
|
#include <gst/base/gstbasesink.h>
|
||||||
#include "gstchecksumsink.h"
|
#include "gstchecksumsink.h"
|
||||||
|
|
||||||
/* prototypes */
|
|
||||||
|
|
||||||
|
|
||||||
static void gst_checksum_sink_set_property (GObject * object,
|
|
||||||
guint property_id, const GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_checksum_sink_get_property (GObject * object,
|
|
||||||
guint property_id, GValue * value, GParamSpec * pspec);
|
|
||||||
static void gst_checksum_sink_dispose (GObject * object);
|
static void gst_checksum_sink_dispose (GObject * object);
|
||||||
static void gst_checksum_sink_finalize (GObject * object);
|
static void gst_checksum_sink_finalize (GObject * object);
|
||||||
|
|
||||||
|
@ -40,14 +33,6 @@ static gboolean gst_checksum_sink_stop (GstBaseSink * sink);
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_checksum_sink_render (GstBaseSink * sink, GstBuffer * buffer);
|
gst_checksum_sink_render (GstBaseSink * sink, GstBuffer * buffer);
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
PROP_0,
|
|
||||||
PROP_SYNC
|
|
||||||
};
|
|
||||||
|
|
||||||
/* pad templates */
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_checksum_sink_sink_template =
|
static GstStaticPadTemplate gst_checksum_sink_sink_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
|
@ -86,8 +71,6 @@ gst_checksum_sink_class_init (GstChecksumSinkClass * klass)
|
||||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||||
GstBaseSinkClass *base_sink_class = GST_BASE_SINK_CLASS (klass);
|
GstBaseSinkClass *base_sink_class = GST_BASE_SINK_CLASS (klass);
|
||||||
|
|
||||||
gobject_class->set_property = gst_checksum_sink_set_property;
|
|
||||||
gobject_class->get_property = gst_checksum_sink_get_property;
|
|
||||||
gobject_class->dispose = gst_checksum_sink_dispose;
|
gobject_class->dispose = gst_checksum_sink_dispose;
|
||||||
gobject_class->finalize = gst_checksum_sink_finalize;
|
gobject_class->finalize = gst_checksum_sink_finalize;
|
||||||
base_sink_class->start = GST_DEBUG_FUNCPTR (gst_checksum_sink_start);
|
base_sink_class->start = GST_DEBUG_FUNCPTR (gst_checksum_sink_start);
|
||||||
|
@ -100,80 +83,29 @@ gst_checksum_sink_init (GstChecksumSink * checksumsink,
|
||||||
GstChecksumSinkClass * checksumsink_class)
|
GstChecksumSinkClass * checksumsink_class)
|
||||||
{
|
{
|
||||||
gst_base_sink_set_sync (GST_BASE_SINK (checksumsink), FALSE);
|
gst_base_sink_set_sync (GST_BASE_SINK (checksumsink), FALSE);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gst_checksum_sink_set_property (GObject * object, guint property_id,
|
|
||||||
const GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstChecksumSink *checksumsink;
|
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_CHECKSUM_SINK (object));
|
|
||||||
checksumsink = GST_CHECKSUM_SINK (object);
|
|
||||||
|
|
||||||
switch (property_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gst_checksum_sink_get_property (GObject * object, guint property_id,
|
|
||||||
GValue * value, GParamSpec * pspec)
|
|
||||||
{
|
|
||||||
GstChecksumSink *checksumsink;
|
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_CHECKSUM_SINK (object));
|
|
||||||
checksumsink = GST_CHECKSUM_SINK (object);
|
|
||||||
|
|
||||||
switch (property_id) {
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gst_checksum_sink_dispose (GObject * object)
|
gst_checksum_sink_dispose (GObject * object)
|
||||||
{
|
{
|
||||||
GstChecksumSink *checksumsink;
|
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_CHECKSUM_SINK (object));
|
|
||||||
checksumsink = GST_CHECKSUM_SINK (object);
|
|
||||||
|
|
||||||
/* clean up as possible. may be called multiple times */
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gst_checksum_sink_finalize (GObject * object)
|
gst_checksum_sink_finalize (GObject * object)
|
||||||
{
|
{
|
||||||
GstChecksumSink *checksumsink;
|
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_CHECKSUM_SINK (object));
|
|
||||||
checksumsink = GST_CHECKSUM_SINK (object);
|
|
||||||
|
|
||||||
/* clean up object here */
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_checksum_sink_start (GstBaseSink * sink)
|
gst_checksum_sink_start (GstBaseSink * sink)
|
||||||
{
|
{
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_checksum_sink_stop (GstBaseSink * sink)
|
gst_checksum_sink_stop (GstBaseSink * sink)
|
||||||
{
|
{
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,8 +55,6 @@ static void gst_chop_my_data_set_property (GObject * object,
|
||||||
guint property_id, const GValue * value, GParamSpec * pspec);
|
guint property_id, const GValue * value, GParamSpec * pspec);
|
||||||
static void gst_chop_my_data_get_property (GObject * object,
|
static void gst_chop_my_data_get_property (GObject * object,
|
||||||
guint property_id, GValue * value, GParamSpec * pspec);
|
guint property_id, GValue * value, GParamSpec * pspec);
|
||||||
static void gst_chop_my_data_dispose (GObject * object);
|
|
||||||
static void gst_chop_my_data_finalize (GObject * object);
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_chop_my_data_change_state (GstElement * element, GstStateChange transition);
|
gst_chop_my_data_change_state (GstElement * element, GstStateChange transition);
|
||||||
|
@ -117,8 +115,6 @@ gst_chop_my_data_class_init (GstChopMyDataClass * klass)
|
||||||
|
|
||||||
gobject_class->set_property = gst_chop_my_data_set_property;
|
gobject_class->set_property = gst_chop_my_data_set_property;
|
||||||
gobject_class->get_property = gst_chop_my_data_get_property;
|
gobject_class->get_property = gst_chop_my_data_get_property;
|
||||||
gobject_class->dispose = gst_chop_my_data_dispose;
|
|
||||||
gobject_class->finalize = gst_chop_my_data_finalize;
|
|
||||||
element_class->change_state =
|
element_class->change_state =
|
||||||
GST_DEBUG_FUNCPTR (gst_chop_my_data_change_state);
|
GST_DEBUG_FUNCPTR (gst_chop_my_data_change_state);
|
||||||
|
|
||||||
|
@ -215,32 +211,6 @@ gst_chop_my_data_get_property (GObject * object, guint property_id,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
gst_chop_my_data_dispose (GObject * object)
|
|
||||||
{
|
|
||||||
GstChopMyData *chopmydata;
|
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_CHOP_MY_DATA (object));
|
|
||||||
chopmydata = GST_CHOP_MY_DATA (object);
|
|
||||||
|
|
||||||
/* clean up as possible. may be called multiple times */
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gst_chop_my_data_finalize (GObject * object)
|
|
||||||
{
|
|
||||||
GstChopMyData *chopmydata;
|
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_CHOP_MY_DATA (object));
|
|
||||||
chopmydata = GST_CHOP_MY_DATA (object);
|
|
||||||
|
|
||||||
/* clean up object here */
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_chop_my_data_change_state (GstElement * element, GstStateChange transition)
|
gst_chop_my_data_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
|
@ -358,7 +328,6 @@ gst_chop_my_data_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_chop_my_data_sink_event (GstPad * pad, GstEvent * event)
|
gst_chop_my_data_sink_event (GstPad * pad, GstEvent * event)
|
||||||
{
|
{
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
|
||||||
gboolean res;
|
gboolean res;
|
||||||
GstChopMyData *chopmydata;
|
GstChopMyData *chopmydata;
|
||||||
|
|
||||||
|
@ -368,7 +337,8 @@ gst_chop_my_data_sink_event (GstPad * pad, GstEvent * event)
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_FLUSH_START:
|
case GST_EVENT_FLUSH_START:
|
||||||
ret = gst_chop_my_data_process (chopmydata, TRUE);
|
/* FIXME: I don't think it should be doing this in FLUSH_START */
|
||||||
|
gst_chop_my_data_process (chopmydata, TRUE);
|
||||||
res = gst_pad_push_event (chopmydata->srcpad, event);
|
res = gst_pad_push_event (chopmydata->srcpad, event);
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_FLUSH_STOP:
|
case GST_EVENT_FLUSH_STOP:
|
||||||
|
@ -378,7 +348,7 @@ gst_chop_my_data_sink_event (GstPad * pad, GstEvent * event)
|
||||||
res = gst_pad_push_event (chopmydata->srcpad, event);
|
res = gst_pad_push_event (chopmydata->srcpad, event);
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_EOS:
|
case GST_EVENT_EOS:
|
||||||
ret = gst_chop_my_data_process (chopmydata, TRUE);
|
gst_chop_my_data_process (chopmydata, TRUE);
|
||||||
res = gst_pad_push_event (chopmydata->srcpad, event);
|
res = gst_pad_push_event (chopmydata->srcpad, event);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -387,7 +357,7 @@ gst_chop_my_data_sink_event (GstPad * pad, GstEvent * event)
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_object_unref (chopmydata);
|
gst_object_unref (chopmydata);
|
||||||
return TRUE;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -410,5 +380,5 @@ gst_chop_my_data_src_event (GstPad * pad, GstEvent * event)
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_object_unref (chopmydata);
|
gst_object_unref (chopmydata);
|
||||||
return TRUE;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,10 +123,8 @@ fisheye_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
|
||||||
static void
|
static void
|
||||||
gst_fisheye_class_init (GstFisheyeClass * klass)
|
gst_fisheye_class_init (GstFisheyeClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
|
||||||
GstGeometricTransformClass *gstgt_class;
|
GstGeometricTransformClass *gstgt_class;
|
||||||
|
|
||||||
gobject_class = (GObjectClass *) klass;
|
|
||||||
gstgt_class = (GstGeometricTransformClass *) klass;
|
gstgt_class = (GstGeometricTransformClass *) klass;
|
||||||
|
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
|
@ -1600,8 +1600,6 @@ gst_h264_parse_push_codec_buffer (GstH264Parse * h264parse, GstBuffer * nal,
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_h264_parse_push_buffer (GstH264Parse * h264parse, GstBuffer * buf)
|
gst_h264_parse_push_buffer (GstH264Parse * h264parse, GstBuffer * buf)
|
||||||
{
|
{
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
|
||||||
|
|
||||||
/* We can send pending events if this is the first call, since we now have
|
/* We can send pending events if this is the first call, since we now have
|
||||||
* caps for the srcpad */
|
* caps for the srcpad */
|
||||||
if (G_UNLIKELY (h264parse->pending_segment != NULL)) {
|
if (G_UNLIKELY (h264parse->pending_segment != NULL)) {
|
||||||
|
@ -1630,7 +1628,7 @@ gst_h264_parse_push_buffer (GstH264Parse * h264parse, GstBuffer * buf)
|
||||||
GST_BUFFER_DURATION (nals->data) = 0;
|
GST_BUFFER_DURATION (nals->data) = 0;
|
||||||
|
|
||||||
gst_buffer_set_caps (nals->data, h264parse->src_caps);
|
gst_buffer_set_caps (nals->data, h264parse->src_caps);
|
||||||
ret = gst_pad_push (h264parse->srcpad, nals->data);
|
(void) gst_pad_push (h264parse->srcpad, nals->data);
|
||||||
nals = g_slist_delete_link (nals, nals);
|
nals = g_slist_delete_link (nals, nals);
|
||||||
}
|
}
|
||||||
h264parse->codec_nals = NULL;
|
h264parse->codec_nals = NULL;
|
||||||
|
@ -2445,7 +2443,7 @@ gst_h264_parse_chain_reverse (GstH264Parse * h264parse, gboolean discont,
|
||||||
|
|
||||||
/* if we have a discont, move buffers to the decode list */
|
/* if we have a discont, move buffers to the decode list */
|
||||||
if (G_UNLIKELY (discont)) {
|
if (G_UNLIKELY (discont)) {
|
||||||
guint start, stop, last;
|
guint start, last;
|
||||||
guint32 code;
|
guint32 code;
|
||||||
GstBuffer *prev;
|
GstBuffer *prev;
|
||||||
GstClockTime timestamp;
|
GstClockTime timestamp;
|
||||||
|
@ -2454,7 +2452,6 @@ gst_h264_parse_chain_reverse (GstH264Parse * h264parse, gboolean discont,
|
||||||
"received discont, copy gathered buffers for decoding");
|
"received discont, copy gathered buffers for decoding");
|
||||||
|
|
||||||
/* init start code accumulator */
|
/* init start code accumulator */
|
||||||
stop = -1;
|
|
||||||
prev = h264parse->prev;
|
prev = h264parse->prev;
|
||||||
h264parse->prev = NULL;
|
h264parse->prev = NULL;
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated)
|
||||||
{
|
{
|
||||||
gint val, duration;
|
gint val, duration;
|
||||||
gchar *title, *end;
|
gchar *title, *end;
|
||||||
gboolean discontinuity;
|
// gboolean discontinuity;
|
||||||
GstM3U8 *list;
|
GstM3U8 *list;
|
||||||
|
|
||||||
g_return_val_if_fail (self != NULL, FALSE);
|
g_return_val_if_fail (self != NULL, FALSE);
|
||||||
|
@ -309,7 +309,7 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated)
|
||||||
if (int_from_string (data + 22, &data, &val))
|
if (int_from_string (data + 22, &data, &val))
|
||||||
self->mediasequence = val;
|
self->mediasequence = val;
|
||||||
} else if (g_str_has_prefix (data, "#EXT-X-DISCONTINUITY")) {
|
} else if (g_str_has_prefix (data, "#EXT-X-DISCONTINUITY")) {
|
||||||
discontinuity = TRUE;
|
/* discontinuity = TRUE; */
|
||||||
} else if (g_str_has_prefix (data, "#EXT-X-PROGRAM-DATE-TIME:")) {
|
} else if (g_str_has_prefix (data, "#EXT-X-PROGRAM-DATE-TIME:")) {
|
||||||
/* <YYYY-MM-DDThh:mm:ssZ> */
|
/* <YYYY-MM-DDThh:mm:ssZ> */
|
||||||
GST_DEBUG ("FIXME parse date");
|
GST_DEBUG ("FIXME parse date");
|
||||||
|
|
|
@ -626,7 +626,7 @@ gst_flups_demux_handle_dvd_event (GstFluPSDemux * demux, GstEvent * event)
|
||||||
const char *type = gst_structure_get_string (structure, "event");
|
const char *type = gst_structure_get_string (structure, "event");
|
||||||
gint i;
|
gint i;
|
||||||
gchar cur_stream_name[32];
|
gchar cur_stream_name[32];
|
||||||
GstFluPSStream *temp;
|
GstFluPSStream *temp G_GNUC_UNUSED;
|
||||||
|
|
||||||
if (strcmp (type, "dvd-lang-codes") == 0) {
|
if (strcmp (type, "dvd-lang-codes") == 0) {
|
||||||
GstEvent **p_ev;
|
GstEvent **p_ev;
|
||||||
|
@ -639,7 +639,7 @@ gst_flups_demux_handle_dvd_event (GstFluPSDemux * demux, GstEvent * event)
|
||||||
GST_DEBUG_OBJECT (demux, "Handling language codes event");
|
GST_DEBUG_OBJECT (demux, "Handling language codes event");
|
||||||
|
|
||||||
/* Create a video pad to ensure have it before emit no more pads */
|
/* Create a video pad to ensure have it before emit no more pads */
|
||||||
temp = gst_flups_demux_get_stream (demux, 0xe0, ST_VIDEO_MPEG2);
|
(void) gst_flups_demux_get_stream (demux, 0xe0, ST_VIDEO_MPEG2);
|
||||||
|
|
||||||
/* Read out the languages for audio streams and request each one that
|
/* Read out the languages for audio streams and request each one that
|
||||||
* is present */
|
* is present */
|
||||||
|
@ -1066,7 +1066,7 @@ gst_flups_demux_handle_seek_pull (GstFluPSDemux * demux, GstEvent * event)
|
||||||
GstSeekType start_type, stop_type;
|
GstSeekType start_type, stop_type;
|
||||||
gint64 start, stop;
|
gint64 start, stop;
|
||||||
gdouble rate;
|
gdouble rate;
|
||||||
gboolean update, flush, keyframe;
|
gboolean update, flush;
|
||||||
GstSegment seeksegment;
|
GstSegment seeksegment;
|
||||||
GstClockTime first_pts = MPEGTIME_TO_GSTTIME (demux->first_pts);
|
GstClockTime first_pts = MPEGTIME_TO_GSTTIME (demux->first_pts);
|
||||||
|
|
||||||
|
@ -1084,7 +1084,7 @@ gst_flups_demux_handle_seek_pull (GstFluPSDemux * demux, GstEvent * event)
|
||||||
goto no_scr_rate;
|
goto no_scr_rate;
|
||||||
|
|
||||||
flush = flags & GST_SEEK_FLAG_FLUSH;
|
flush = flags & GST_SEEK_FLAG_FLUSH;
|
||||||
keyframe = flags & GST_SEEK_FLAG_KEY_UNIT;
|
/* keyframe = flags & GST_SEEK_FLAG_KEY_UNIT; *//* FIXME */
|
||||||
|
|
||||||
if (flush) {
|
if (flush) {
|
||||||
/* Flush start up and downstream to make sure data flow and loops are
|
/* Flush start up and downstream to make sure data flow and loops are
|
||||||
|
|
|
@ -1047,10 +1047,8 @@ mpegts_base_chain (GstPad * pad, GstBuffer * buf)
|
||||||
MpegTSPacketizerPacketReturn pret;
|
MpegTSPacketizerPacketReturn pret;
|
||||||
MpegTSPacketizer2 *packetizer;
|
MpegTSPacketizer2 *packetizer;
|
||||||
MpegTSPacketizerPacket packet;
|
MpegTSPacketizerPacket packet;
|
||||||
MpegTSBaseClass *klass;
|
|
||||||
|
|
||||||
base = GST_MPEGTS_BASE (gst_object_get_parent (GST_OBJECT (pad)));
|
base = GST_MPEGTS_BASE (gst_object_get_parent (GST_OBJECT (pad)));
|
||||||
klass = GST_MPEGTS_BASE_GET_CLASS (base);
|
|
||||||
packetizer = base->packetizer;
|
packetizer = base->packetizer;
|
||||||
|
|
||||||
mpegts_packetizer_push (base->packetizer, buf);
|
mpegts_packetizer_push (base->packetizer, buf);
|
||||||
|
|
Loading…
Reference in a new issue