if (G_UNLIKELY (bclass->add_element == NULL))
goto no_function;
-#ifndef GST_TIZEN_TV
+#ifndef TIZEN_PROFILE_TV
GST_CAT_DEBUG (GST_CAT_PARENTAGE, "adding element %s to bin %s",
GST_STR_NULL (GST_ELEMENT_NAME (element)),
GST_STR_NULL (GST_ELEMENT_NAME (bin)));
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
g_object_set (G_OBJECT (pad), "family-id",
(int) (GST_OBJECT_CAST (element)->family_id), NULL);
#endif
PROP_0,
PROP_NAME,
PROP_PARENT,
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
PROP_FAMILY_ID,
#endif
PROP_LAST
properties[PROP_PARENT] =
g_param_spec_object ("parent", "Parent", "The parent of the object",
GST_TYPE_OBJECT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
properties[PROP_FAMILY_ID] =
g_param_spec_int ("family-id", "Family Id",
"The family id of this object group, usually inherit from parent.",
#endif
object->flags = 0;
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
object->family_id = 0;
#endif
object->control_rate = 100 * GST_MSECOND;
case PROP_PARENT:
gst_object_set_parent (gstobject, g_value_get_object (value));
break;
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
case PROP_FAMILY_ID:
g_atomic_int_set (&gstobject->family_id, g_value_get_int (value));
break;
case PROP_PARENT:
g_value_take_object (value, gst_object_get_parent (gstobject));
break;
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
case PROP_FAMILY_ID:
g_value_set_int (value, g_atomic_int_get (&gstobject->family_id));
break;
* @binding: the binding
*
* Removes the corresponding #GstControlBinding. If it was the
- * last ref of the binding, it will be disposed.
+ * last ref of the binding, it will be disposed.
*
* Returns: %TRUE if the binding could be removed.
*/
* This function is useful if one wants to e.g. draw a graph of the control
* curve or apply a control curve sample by sample.
*
- * The values are unboxed and ready to be used. The similar function
+ * The values are unboxed and ready to be used. The similar function
* gst_object_get_g_value_array() returns the array as #GValues and is
* better suites for bindings.
*
gchar *name; /* object name */
GstObject *parent; /* this object's parent, weak ref */
guint32 flags;
-#ifdef GST_TIZEN_TV
- gint family_id; /* inherit the parent's id */
+#ifdef TIZEN_PROFILE_TV
+ gint family_id; /* inherit the parent's id */
#endif
/*< private >*/
/* GStreamer
* Copyright (C) 2006 Jan Schmidt <thaytan@noraisin.net>
*
- * gstquark.c: Registered quarks for the _priv_gst_quark_table, private to
+ * gstquark.c: Registered quarks for the _priv_gst_quark_table, private to
* GStreamer
*
* This library is free software; you can redistribute it and/or
"GstMessageStreamStart", "group-id", "uri-redirection",
"GstMessageDeviceAdded", "GstMessageDeviceRemoved", "device",
"uri-redirection-permanent"
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
,"GstQuarkQueryResource"
#endif
};
/* GStreamer
* Copyright (C) 2006 Jan Schmidt <thaytan@noraisin.net>
*
- * gstquark.h: Private header for storing quark info
+ * gstquark.h: Private header for storing quark info
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
GST_QUARK_MESSAGE_DEVICE_REMOVED = 171,
GST_QUARK_DEVICE = 172,
GST_QUARK_URI_REDIRECTION_PERMANENT = 173,
-#ifndef GST_TIZEN_TV
+#ifndef TIZEN_PROFILE_TV
GST_QUARK_MAX = 174
#else
GST_QUARK_QUERY_RESOURCE = 174,
#include "gstquark.h"
#include "gsturi.h"
#include "gstbufferpool.h"
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
#include <stdio.h>
#endif
{GST_QUERY_CAPS, "caps", 0},
{GST_QUERY_DRAIN, "drain", 0},
{GST_QUERY_CONTEXT, "context", 0},
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
{GST_QUERY_RESOURCE, "resource", 0},
#endif
{0, NULL, 0}
return query;
}
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
/**
* gst_query_new_resource:
* @resources: pointer to store the resources
GST_QUERY_CAPS = GST_QUERY_MAKE_TYPE (170, FLAG(BOTH)),
GST_QUERY_DRAIN = GST_QUERY_MAKE_TYPE (180, FLAG(DOWNSTREAM) | FLAG(SERIALIZED)),
GST_QUERY_CONTEXT = GST_QUERY_MAKE_TYPE (190, FLAG(BOTH))
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
,GST_QUERY_RESOURCE = GST_QUERY_MAKE_TYPE (200, FLAG (BOTH))
#endif
} GstQueryType;
void gst_query_set_duration (GstQuery *query, GstFormat format, gint64 duration);
void gst_query_parse_duration (GstQuery *query, GstFormat *format, gint64 *duration);
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
/* resrource query */
GstQuery* gst_query_new_resource (gchar * resources) G_GNUC_MALLOC;
void gst_query_add_resource (GstQuery * query, gint resource_id);
_("freeform name of the language this stream is in"), NULL);
gst_tag_register_static (GST_TAG_IMAGE, GST_TAG_FLAG_META, GST_TYPE_SAMPLE,
_("image"), _("image related to this stream"), gst_tag_merge_use_first);
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
gst_tag_register_static (GST_TAG_AUDIO_DUALMONO, GST_TAG_FLAG_DECODED, G_TYPE_UINT,
_("dualmono audio"), _("dual/mono related to this audio stream"), NULL);
#endif
* container format the data is stored in (string)
*/
#define GST_TAG_CONTAINER_FORMAT "container-format"
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
/**
* GST_TAG_AUDIO_DUALMONO:
*
#include "gst-i18n-lib.h"
#include "glib-compat-private.h"
#include <math.h>
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
#include "gstchildproxy.h"
#endif
return g_atomic_int_add (&counter, 1);
}
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
/**
* gst_element_query_resource
* @element: (in) a #GstElement to invoke the resource query on.
gboolean gst_element_query_duration (GstElement *element, GstFormat format, gint64 *duration);
gboolean gst_element_query_convert (GstElement *element, GstFormat src_format, gint64 src_val,
GstFormat dest_format, gint64 *dest_val);
-#ifdef GST_TIZEN_TV
-gboolean gst_element_query_resource (GstElement *element, GList **resource_list);
+#ifdef TIZEN_PROFILE_TV
+gboolean gst_element_query_resource (GstElement *element, GList **resource_list);
#endif
gint *res_n, gint *res_d);
gint gst_util_fraction_compare (gint a_n, gint a_d, gint b_n, gint b_d);
-#ifdef GST_TIZEN_TV
-void gst_set_family_id_to_child (GstElement* child, int id);
+#ifdef TIZEN_PROFILE_TV
+void gst_set_family_id_to_child (GstElement* child, int id);
#endif
G_END_DECLS
GstTagList *parser_tags;
GstTagMergeMode parser_tags_merge_mode;
gboolean tags_changed;
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
/* to get pad mode early */
GstPadMode expected_pad_mode;
/* check first frame in base parser */
parse->priv->pad_mode = GST_PAD_MODE_NONE;
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
parse->priv->expected_pad_mode = GST_PAD_MODE_NONE;
#endif
parse->priv->skip = 0;
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
parse->priv->first_frame = TRUE;
parse->priv->remove_from_total = 0;
parse->priv->accurate_index_seek = TRUE;
g_list_free (parse->priv->detect_buffers);
parse->priv->detect_buffers = NULL;
parse->priv->detect_buffers_size = 0;
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
parse->priv->accurate_index_seek = TRUE;
#endif
GST_OBJECT_UNLOCK (parse);
if (!parse->priv->framecount)
goto no_framecount;
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
duration = parse->priv->acc_duration / GST_USECOND;
#else
duration = parse->priv->acc_duration / GST_MSECOND;
if (dest_format == GST_FORMAT_TIME) {
/* BYTES -> TIME conversion */
GST_DEBUG_OBJECT (parse, "converting bytes -> time");
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
src_value = src_value - parse->priv->remove_from_total;
#endif
*dest_value = gst_util_uint64_scale (src_value, duration, bytes);
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
*dest_value /= GST_USECOND;
#endif
*dest_value *= GST_MSECOND;
} else if (src_format == GST_FORMAT_TIME) {
if (dest_format == GST_FORMAT_BYTES) {
GST_DEBUG_OBJECT (parse, "converting time -> bytes");
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
*dest_value = gst_util_uint64_scale (src_value / GST_USECOND, bytes,
duration);
#else
gst_adapter_push (parse->priv->adapter, buffer);
}
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
/* some one-time start-up */
if (G_UNLIKELY (parse->priv->framecount == 0)) {
gst_base_parse_check_seekability (parse);
* we may have new information on frame properties */
gst_base_parse_parse_frame (parse, frame);
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
if (parse->priv->first_frame) {
parse->priv->remove_from_total = GST_BUFFER_OFFSET (buffer);
GST_DEBUG_OBJECT (parse, "first frame has offset %" G_GINT64_FORMAT ". remove from total",
buffer = frame->buffer;
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
if (!GST_CLOCK_TIME_IS_VALID (GST_BUFFER_PTS (buffer))) {
GST_LOG_OBJECT (parse, "invalid pts, set with dts");
GST_BUFFER_PTS (buffer) = GST_BUFFER_DTS (buffer);
if (parse->priv->update_interval < 0)
parse->priv->update_interval = 50;
else if (parse->priv->update_interval > 0 &&
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
((parse->priv->framecount - 1) % parse->priv->update_interval) == 0)
#else
(parse->priv->framecount % parse->priv->update_interval) == 0)
GST_DEBUG_OBJECT (parse, "sink %sactivate in %s mode",
(active) ? "" : "de", gst_pad_mode_get_name (mode));
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
/* to know early what is the mode */
parse->priv->expected_pad_mode = active ? mode : GST_PAD_MODE_NONE;
#endif
/* maybe we can be accurate for (almost) free */
gst_base_parse_find_offset (parse, seeksegment.position, TRUE, &start_ts);
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
if (parse->priv->accurate_index_seek) {
if (seeksegment.position <= start_ts + TARGET_DIFFERENCE) {
GST_DEBUG_OBJECT (parse, "accurate seek possible");
GST_OBJECT_UNLOCK (parse);
}
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
void
gst_base_parse_get_upstream_size (GstBaseParse * parse,
gint64 * upstream_size)
void gst_base_parse_merge_tags (GstBaseParse * parse,
GstTagList * tags,
GstTagMergeMode mode);
-#ifdef GST_BASEPARSE_MODIFICATION
+#ifdef TIZEN_FEATURE_BASEPARSE_MODIFICATION
void gst_base_parse_get_upstream_size (GstBaseParse * parse,
gint64 * upstream_size);
#define DEFAULT_NUM_BUFFERS -1
#define DEFAULT_TYPEFIND FALSE
#define DEFAULT_DO_TIMESTAMP FALSE
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
#define DEFAULT_SEGMENT_TIME -1
#endif
PROP_NUM_BUFFERS,
PROP_TYPEFIND,
PROP_DO_TIMESTAMP
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
,PROP_UPDATE_SEGMENT
#endif
};
g_param_spec_boolean ("do-timestamp", "Do timestamp",
"Apply current stream time to buffers", DEFAULT_DO_TIMESTAMP,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
g_object_class_install_property (gobject_class, PROP_UPDATE_SEGMENT,
g_param_spec_int64 ("update-segment", "Update Segment",
"Timestamp that application want to set (-1 unlimited)",
GST_OBJECT_UNLOCK (src);
}
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
/**
*gst_base_src_update_segment:
*@src: the source
case PROP_DO_TIMESTAMP:
gst_base_src_set_do_timestamp (src, g_value_get_boolean (value));
break;
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
case PROP_UPDATE_SEGMENT:
gst_base_src_update_segment (src, g_value_get_int64 (value));
break;
GstAllocator **allocator,
GstAllocationParams *params);
-#ifdef GST_TIZEN_TV
-void gst_base_src_update_segment (GstBaseSrc * src, gint64 timestamp);
+#ifdef TIZEN_PROFILE_TV
+void gst_base_src_update_segment (GstBaseSrc * src, gint64 timestamp);
#endif
G_END_DECLS
Name: gstreamer
Version: 1.6.1
-Release: 4
+Release: 5
Summary: Streaming-Media Framework Runtime
License: LGPL-2.0+
Group: Multimedia/Framework
export V=1
NOCONFIGURE=1 ./autogen.sh
export CFLAGS="%{optflags} \
- -DGST_QUEUE2_MODIFICATION\
- -DGST_EXT_CURRENT_BYTES\
- -DGST_TIZEN_MODIFICATION\
- -DGST_BASEPARSE_MODIFICATION\
- -DGST_QUEUE_MODIFICATION\
- -DGST_MQ_MODIFICATION\
+ -DTIZEN_FEATURE_QUEUE2_MODIFICATION\
+ -DTIZEN_FEATURE_FILESINK_MODIFICATION\
+ -DTIZEN_FEATURE_MQ_MODIFICATION\
+ -DTIZEN_FEATURE_BASEPARSE_MODIFICATION\
+ -DTIZEN_FEATURE_QUEUE_MODIFICATION\
%if "%{?profile}" == "tv"
- -DGST_TIZEN_TV\
+ -DTIZEN_PROFILE_TV\
%endif
-fno-strict-aliasing"
PROP_BUFFER_MODE,
PROP_BUFFER_SIZE,
PROP_APPEND,
-#ifdef GST_EXT_CURRENT_BYTES
+#ifdef TIZEN_FEATURE_FILESINK_MODIFICATION
PROP_CURRENT_BYTES,
#endif
PROP_LAST
"Size of buffer in number of bytes for line or full buffer-mode", 0,
G_MAXUINT, DEFAULT_BUFFER_SIZE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
-#ifdef GST_EXT_CURRENT_BYTES
+#ifdef TIZEN_FEATURE_FILESINK_MODIFICATION
g_object_class_install_property (gobject_class, PROP_CURRENT_BYTES,
g_param_spec_uint64 ("current-bytes", "Current bytes",
"downloaded bytes so far", 0,
/**
* GstFileSink:append
- *
+ *
* Append to an already existing file.
*/
g_object_class_install_property (gobject_class, PROP_APPEND,
case PROP_APPEND:
g_value_set_boolean (value, sink->append);
break;
-#ifdef GST_EXT_CURRENT_BYTES
+#ifdef TIZEN_FEATURE_FILESINK_MODIFICATION
case PROP_CURRENT_BYTES:
g_value_set_uint64(value, sink->current_pos);
break;
PROP_MAX_SIZE_BYTES,
PROP_MAX_SIZE_BUFFERS,
PROP_MAX_SIZE_TIME,
-#ifdef GST_MQ_MODIFICATION
+#ifdef TIZEN_FEATURE_MQ_MODIFICATION
PROP_CURR_SIZE_BYTES,
#endif
PROP_USE_BUFFERING,
"Max. amount of data in the queue (in ns, 0=disable)", 0, G_MAXUINT64,
DEFAULT_MAX_SIZE_TIME, G_PARAM_READWRITE | GST_PARAM_MUTABLE_PLAYING |
G_PARAM_STATIC_STRINGS));
-#ifdef GST_MQ_MODIFICATION
+#ifdef TIZEN_FEATURE_MQ_MODIFICATION
g_object_class_install_property (gobject_class, PROP_CURR_SIZE_BYTES,
g_param_spec_uint ("curr-size-bytes", "Current buffered size (kB)",
"buffered amount of data in the queue (bytes)", 0, G_MAXUINT,
case PROP_HIGH_PERCENT:
mq->high_percent = g_value_get_int (value);
-#ifdef GST_TIZEN_MODIFICATION
+#ifdef TIZEN_FEATURE_MQ_MODIFICATION
if (mq->buffering) {
mq->percent_changed = TRUE;
gst_multi_queue_post_buffering (mq);
}
}
-#ifdef GST_MQ_MODIFICATION
+#ifdef TIZEN_FEATURE_MQ_MODIFICATION
static guint
get_current_size_bytes (GstMultiQueue * mq)
{
case PROP_MAX_SIZE_TIME:
g_value_set_uint64 (value, mq->max_size.time);
break;
-#ifdef GST_MQ_MODIFICATION
+#ifdef TIZEN_FEATURE_MQ_MODIFICATION
case PROP_CURR_SIZE_BYTES:
g_value_set_uint (value, get_current_size_bytes(mq));
break;
PROP_MIN_THRESHOLD_TIME,
PROP_LEAKY,
PROP_SILENT,
-#ifdef GST_QUEUE_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE_MODIFICATION
PROP_EMPTY_BUFFERS,
-#endif /* GST_QUEUE_MODIFICATION */
+#endif /* TIZEN_FEATURE_QUEUE_MODIFICATION */
PROP_FLUSH_ON_EOS
};
G_PARAM_READWRITE | GST_PARAM_MUTABLE_PLAYING |
G_PARAM_STATIC_STRINGS));
-#ifdef GST_QUEUE_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE_MODIFICATION
g_object_class_install_property (gobject_class, PROP_EMPTY_BUFFERS,
g_param_spec_boolean ("empty-buffers", "empty_buffers",
"Drop all the incomming buffers and flush buffers in queue",
FALSE, G_PARAM_READWRITE));
-#endif /* GST_QUEUE_MODIFICATION */
+#endif /* TIZEN_FEATURE_QUEUE_MODIFICATION */
/**
* GstQueue:flush-on-eos
queue->newseg_applied_to_src = FALSE;
-#ifdef GST_QUEUE_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE_MODIFICATION
queue->empty_buffers = FALSE;
-#endif /* GST_QUEUE_MODIFICATION */
+#endif /* TIZEN_FEATURE_QUEUE_MODIFICATION */
GST_DEBUG_OBJECT (queue,
"initialized queue's not_empty & not_full conditions");
if (queue->unexpected)
goto out_unexpected;
-#ifdef GST_QUEUE_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE_MODIFICATION
/* Added to not enqueue buffers in the queue while paused */
if (queue->empty_buffers) {
GST_CAT_LOG_OBJECT(queue_dataflow, queue, "drop buffer %p", obj);
GST_QUEUE_MUTEX_UNLOCK(queue);
return GST_FLOW_OK;
}
-#endif /* GST_QUEUE_MODIFICATION */
+#endif /* TIZEN_FEATURE_QUEUE_MODIFICATION */
if (!is_list) {
GstClockTime duration, timestamp;
case PROP_SILENT:
queue->silent = g_value_get_boolean (value);
break;
-#ifdef GST_QUEUE_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE_MODIFICATION
case PROP_EMPTY_BUFFERS:
queue->empty_buffers = g_value_get_boolean (value);
GST_INFO_OBJECT(queue, "set empty buffer : %d", queue->empty_buffers);
}
GST_INFO_OBJECT(queue, "done");
break;
-#endif /* GST_QUEUE_MODIFICATION */
+#endif /* TIZEN_FEATURE_QUEUE_MODIFICATION */
case PROP_FLUSH_ON_EOS:
queue->flush_on_eos = g_value_get_boolean (value);
break;
case PROP_SILENT:
g_value_set_boolean (value, queue->silent);
break;
-#ifdef GST_QUEUE_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE_MODIFICATION
case PROP_EMPTY_BUFFERS:
g_value_set_boolean(value, queue->empty_buffers);
break;
-#endif /* GST_QUEUE_MODIFICATION */
+#endif /* TIZEN_FEATURE_QUEUE_MODIFICATION */
case PROP_FLUSH_ON_EOS:
g_value_set_boolean (value, queue->flush_on_eos);
break;
gboolean unexpected;
gboolean eos;
-#ifdef GST_QUEUE_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE_MODIFICATION
/* drop incomming buffers and flush buffers in queue */
gboolean empty_buffers;
-#endif /* GST_QUEUE_MODIFICATION */
+#endif /* TIZEN_FEATURE_QUEUE_MODIFICATION */
/* the queue of data we're keeping our grubby hands on */
GstQueueArray *queue;
static void update_cur_level (GstQueue2 * queue, GstQueue2Range * range);
static void update_in_rates (GstQueue2 * queue);
static void gst_queue2_post_buffering (GstQueue2 * queue);
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
static gboolean change_current_range(GstQueue2 * queue, GstQueue2Range *req_range, guint64 offset, guint length);
#endif
g_slice_free_chain (GstQueue2Range, queue->ranges, next);
queue->ranges = NULL;
queue->current = NULL;
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
queue->read = NULL;
#endif
}
/* get rid of all the current ranges */
clean_ranges (queue);
/* make a range for offset 0 */
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
queue->current = queue->read = add_range (queue, 0, TRUE);
#else
queue->current = add_range (queue, 0, TRUE);
if (segment->format == GST_FORMAT_BYTES) {
if (!QUEUE_IS_USING_QUEUE (queue) && is_sink) {
/* start is where we'll be getting from and as such writing next */
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
queue->current = queue->read = add_range (queue, segment->start, TRUE);
#else
queue->current = add_range (queue, segment->start, TRUE);
update_buffering (GstQueue2 * queue)
{
gint percent;
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
GstQueue2Range *range;
if (queue->read)
#endif
/* Ensure the variables used to calculate buffering state are up-to-date. */
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
if (range)
update_cur_level (queue, range);
#else
* cause data to be written to the wrong offset in the file or ring buffer.
* We still do the add_range call to switch the current range to the
* requested range, or create one if one doesn't exist yet. */
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
queue->current = queue->read = add_range (queue, offset, FALSE);
#else
queue->current = add_range (queue, offset, FALSE);
return threshold;
}
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
/* check the buffered data size, not to change range repeatedly.
* changing range cause the new http connection and it makes buffering state frequently. */
static gboolean
gst_queue2_have_data (GstQueue2 * queue, guint64 offset, guint length)
{
GstQueue2Range *range;
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
gboolean need_to_seek = TRUE;
#endif
GST_DEBUG_OBJECT (queue, "looking for offset %" G_GUINT64_FORMAT ", len %u",
offset, length);
if ((range = find_range (queue, offset))) {
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
queue->read = range;
#endif
if (queue->current != range) {
GST_DEBUG_OBJECT (queue, "switching ranges, do seek to range position");
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
if (QUEUE_IS_USING_TEMP_FILE(queue) && !QUEUE_IS_USING_RING_BUFFER(queue))
need_to_seek = change_current_range(queue, range, offset, length);
GST_INFO_OBJECT (queue, "not found in any range off %" G_GUINT64_FORMAT
" len %u", offset, length);
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
queue->read = queue->current;
#endif
guint64 level;
/* calculate how far away the offset is */
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
if (queue->read->writing_pos > rpos)
level = queue->read->writing_pos - rpos;
#else
GST_DEBUG_OBJECT (queue,
"reading %" G_GUINT64_FORMAT ", writing %" G_GUINT64_FORMAT
", level %" G_GUINT64_FORMAT ", max %" G_GUINT64_FORMAT,
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
rpos, queue->read->writing_pos, level, max_size);
#else
rpos, queue->current->writing_pos, level, max_size);
if (read_length == 0) {
if (QUEUE_IS_USING_RING_BUFFER (queue)) {
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
GST_DEBUG_OBJECT (queue,
"update current position [%" G_GUINT64_FORMAT "-%"
G_GUINT64_FORMAT "]", rpos, queue->read->max_reading_pos);
}
/* set range reading_pos to actual reading position for this read */
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
queue->read->reading_pos = rpos;
#else
queue->current->reading_pos = rpos;
/* configure how much and from where to read */
if (QUEUE_IS_USING_RING_BUFFER (queue)) {
file_offset =
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
(queue->read->rb_offset + (rpos -
queue->read->offset)) % rb_size;
#else
block_length = read_length;
remaining -= read_return;
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
rpos = (queue->read->reading_pos += read_return);
update_cur_pos (queue, queue->read, queue->read->reading_pos);
#else
GstBuffer *buffer = NULL;
guint64 reading_pos;
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
reading_pos = queue->read->reading_pos;
#else
reading_pos = queue->current->reading_pos;
queue->current->rb_writing_pos = writing_pos = new_writing_pos;
} else {
queue->current->writing_pos = writing_pos = new_writing_pos;
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
if (do_seek) {
if (queue->upstream_size == 0 || new_writing_pos < queue->upstream_size)
perform_seek_to_offset (queue, new_writing_pos);
#endif
}
-#ifndef GST_QUEUE2_MODIFICATION
+#ifndef TIZEN_FEATURE_QUEUE2_MODIFICATION
if (do_seek)
perform_seek_to_offset (queue, new_writing_pos);
#endif
range_stop = 0;
break;
}
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
range_start =
gst_util_uint64_scale (GST_FORMAT_PERCENT_MAX,
queued_ranges->reading_pos, duration);
queued_ranges->writing_pos, duration);
break;
case GST_FORMAT_BYTES:
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
range_start = queued_ranges->reading_pos;
#else
range_start = queued_ranges->offset;
{
gboolean pull_mode;
GstSchedulingFlags flags = 0;
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
if ((!QUEUE_IS_USING_QUEUE (queue)) && !gst_pad_peer_query (queue->sinkpad, query))
#else
if (!gst_pad_peer_query (queue->sinkpad, query))
/* list of downloaded areas and the current area */
GstQueue2Range *ranges;
GstQueue2Range *current;
-#ifdef GST_QUEUE2_MODIFICATION
+#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION
GstQueue2Range *read;
#endif
/* we need this to send the first new segment event of the stream
/* Require at least 2kB of data before we attempt typefinding in chain-mode.
* 128kB is massive overkill for the maximum, but doesn't do any harm */
-#ifdef GST_TIZEN_TV
+#ifdef TIZEN_PROFILE_TV
/* TV demuxer needs 4*1024 as min size to match demuxer, if not
* sometimes can't find correct demuxer
*/