summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2009-01-02 01:12:35 +0000
committerAlessandro Decina <alessandro.d@gmail.com>2009-01-02 01:12:35 +0000
commit1d71d95218e6615ee8edc8fdf38a83c6479d5d3f (patch)
tree78e1e90814395d7c01e8456d50cb03fc9c9791fd
parent71fc2ce3b4e9159b97cd7a7f67ace1ccec74bc5a (diff)
downloadgst-plugins-bad-1d71d95218e6615ee8edc8fdf38a83c6479d5d3f.tar.gz
gst-plugins-bad-1d71d95218e6615ee8edc8fdf38a83c6479d5d3f.tar.bz2
gst-plugins-bad-1d71d95218e6615ee8edc8fdf38a83c6479d5d3f.zip
gst/mpegdemux/gstmpegdemux.c: Initialize scr_rate_n and scr_rate_d in order to fix compiler warnings.
Original commit message from CVS: * gst/mpegdemux/gstmpegdemux.c: Initialize scr_rate_n and scr_rate_d in order to fix compiler warnings.
-rw-r--r--ChangeLog5
-rw-r--r--gst/mpegdemux/gstmpegdemux.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c2fea66..fa7b4836 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-02 Alessandro Decina <alessandro.d@gmail.com>
+
+ * gst/mpegdemux/gstmpegdemux.c:
+ Initialize scr_rate_n and scr_rate_d in order to fix compiler warnings.
+
2008-12-31 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/mxf/mxfaes-bwf.c: (mxf_bwf_handle_essence_element),
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c
index 2d057c30..9b5dbe99 100644
--- a/gst/mpegdemux/gstmpegdemux.c
+++ b/gst/mpegdemux/gstmpegdemux.c
@@ -1140,6 +1140,9 @@ gst_flups_demux_parse_pack_start (GstFluPSDemux * demux)
/* estimate byte rate related to the SCR */
scr_rate_n = demux->last_scr_offset - demux->first_scr_offset;
scr_rate_d = scr_adjusted - demux->first_scr;
+ } else {
+ scr_rate_n = demux->scr_rate_n;
+ scr_rate_d = demux->scr_rate_d;
}
GST_DEBUG_OBJECT (demux, "%s mode scr: %" G_GUINT64_FORMAT " at %"