summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch')
-rw-r--r--meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch b/meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch
deleted file mode 100644
index 5bc279a019..0000000000
--- a/meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1Fix music player crash if adding unknown type files.
2
3Using bus message to call function flush_head/feed_head in main thread
4to protect private data operation.
5
6A better fix may be to listen to bus message "CODEC_NOT_FOUND" and
7"MISSING_PLUGIN" directly to avoid hooking into "unknown-type" signal.
8We will revisit it in next period.
9
10Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
11
12Upstream-Status: Pending
13
14diff -ruN libowl-av-orig/libowl-av/owl-tag-reader.c libowl-av/libowl-av/owl-tag-reader.c
15--- libowl-av-orig/libowl-av/owl-tag-reader.c 2010-10-12 14:30:26.000000000 +0800
16+++ libowl-av/libowl-av/owl-tag-reader.c 2010-10-12 14:32:39.000000000 +0800
17@@ -300,13 +300,23 @@
18 GstCaps *caps,
19 OwlTagReader *tag_reader)
20 {
21+ GstMessage *message;
22+ GstBus *bus;
23+
24 tag_reader->priv->current_error =
25 g_error_new (OWL_TAG_READER_ERROR,
26 OWL_TAG_READER_ERROR_UNKNOWN_TYPE,
27 "Unknown type");
28
29- flush_head (tag_reader);
30- feed_head (tag_reader);
31+ /**
32+ * Post a message to the bus, as we are in another thread here.
33+ **/
34+ message = gst_message_new_error(GST_OBJECT (decodebin),
35+ tag_reader->priv->current_error, NULL);
36+
37+ bus = gst_pipeline_get_bus (GST_PIPELINE (tag_reader->priv->pipeline));
38+ gst_bus_post (bus, message);
39+ gst_object_unref (GST_OBJECT (bus));
40 }
41
42 /**