mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Fix compilation on BE, see #129224
Original commit message from CVS: Fix compilation on BE, see #129224
This commit is contained in:
parent
7625bd81d9
commit
fd6b022682
1 changed files with 9 additions and 3 deletions
|
@ -118,7 +118,9 @@ void
|
||||||
gst_ebml_write_set_cache (GstEbmlWrite *ebml,
|
gst_ebml_write_set_cache (GstEbmlWrite *ebml,
|
||||||
guint size)
|
guint size)
|
||||||
{
|
{
|
||||||
|
/* This is currently broken. I don't know why yet. */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_return_if_fail (ebml->cache == NULL);
|
g_return_if_fail (ebml->cache == NULL);
|
||||||
|
|
||||||
ebml->cache = gst_buffer_new_and_alloc (size);
|
ebml->cache = gst_buffer_new_and_alloc (size);
|
||||||
|
@ -276,10 +278,12 @@ gst_ebml_write_element_push (GstEbmlWrite *ebml,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if there's no cache, then don't push it! */
|
/* if there's no cache, then don't push it! */
|
||||||
if (ebml->cache)
|
if (ebml->cache) {
|
||||||
g_assert (buf == ebml->cache);
|
g_assert (buf == ebml->cache);
|
||||||
else
|
return;
|
||||||
gst_pad_push (ebml->srcpad, GST_DATA (buf));
|
}
|
||||||
|
|
||||||
|
gst_pad_push (ebml->srcpad, GST_DATA (buf));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -401,7 +405,9 @@ gst_ebml_write_float (GstEbmlWrite *ebml,
|
||||||
guint32 id,
|
guint32 id,
|
||||||
gdouble num)
|
gdouble num)
|
||||||
{
|
{
|
||||||
|
#if (G_BYTE_ORDER == G_LITTLE_ENDIAN)
|
||||||
gint n;
|
gint n;
|
||||||
|
#endif
|
||||||
GstBuffer *buf = gst_ebml_write_element_new (ebml, sizeof (num));
|
GstBuffer *buf = gst_ebml_write_element_new (ebml, sizeof (num));
|
||||||
|
|
||||||
gst_ebml_write_element_id (buf, id);
|
gst_ebml_write_element_id (buf, id);
|
||||||
|
|
Loading…
Reference in a new issue