diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2007-04-20 17:25:50 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2007-04-20 17:25:50 +0000 |
commit | 106db1b2eb7172c564151b3254c742f16676d95c (patch) | |
tree | fc82a7dc13b7d0d0cee1707ea0a8d1de67fb9bd6 /gst/debug | |
parent | 4a1ceda8df71835bd62c060ad9088735a8493182 (diff) |
gst/debug/progressreport.c: Don't try to post NULL message (in case we can't query upstream position or duration).
Original commit message from CVS:
* gst/debug/progressreport.c: (gst_progress_report_report):
Don't try to post NULL message (in case we can't query upstream
position or duration).
Diffstat (limited to 'gst/debug')
-rw-r--r-- | gst/debug/progressreport.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/debug/progressreport.c b/gst/debug/progressreport.c index 2650a239..f36b12ce 100644 --- a/gst/debug/progressreport.c +++ b/gst/debug/progressreport.c @@ -358,7 +358,9 @@ gst_progress_report_report (GstProgressReport * filter, GTimeVal cur_time) filter->pending_msg = NULL; GST_OBJECT_UNLOCK (filter); - gst_element_post_message (GST_ELEMENT_CAST (filter), msg); + if (msg) { + gst_element_post_message (GST_ELEMENT_CAST (filter), msg); + } } static gboolean |