@@ -10,7 +10,7 @@ use std::sync::LazyLock;
1010use std:: sync:: Mutex ;
1111
1212static CAT : Lazy < gst:: DebugCategory > =
13- Lazy :: new ( || gst:: DebugCategory :: new ( "hang -src" , gst:: DebugColorFlags :: empty ( ) , Some ( "Hang Source Element" ) ) ) ;
13+ Lazy :: new ( || gst:: DebugCategory :: new ( "moq -src" , gst:: DebugColorFlags :: empty ( ) , Some ( "MoQ Source Element" ) ) ) ;
1414
1515pub static RUNTIME : Lazy < tokio:: runtime:: Runtime > = Lazy :: new ( || {
1616 tokio:: runtime:: Builder :: new_multi_thread ( )
@@ -28,25 +28,25 @@ struct Settings {
2828}
2929
3030#[ derive( Default ) ]
31- pub struct HangSrc {
31+ pub struct MoqSrc {
3232 settings : Mutex < Settings > ,
3333}
3434
3535#[ glib:: object_subclass]
36- impl ObjectSubclass for HangSrc {
37- const NAME : & ' static str = "HangSrc " ;
38- type Type = super :: HangSrc ;
36+ impl ObjectSubclass for MoqSrc {
37+ const NAME : & ' static str = "MoqSrc " ;
38+ type Type = super :: MoqSrc ;
3939 type ParentType = gst:: Bin ;
4040
4141 fn new ( ) -> Self {
4242 Self :: default ( )
4343 }
4444}
4545
46- impl GstObjectImpl for HangSrc { }
47- impl BinImpl for HangSrc { }
46+ impl GstObjectImpl for MoqSrc { }
47+ impl BinImpl for MoqSrc { }
4848
49- impl ObjectImpl for HangSrc {
49+ impl ObjectImpl for MoqSrc {
5050 fn properties ( ) -> & ' static [ glib:: ParamSpec ] {
5151 static PROPERTIES : Lazy < Vec < glib:: ParamSpec > > = Lazy :: new ( || {
5252 vec ! [
@@ -91,7 +91,7 @@ impl ObjectImpl for HangSrc {
9191 }
9292}
9393
94- impl ElementImpl for HangSrc {
94+ impl ElementImpl for MoqSrc {
9595 fn metadata ( ) -> Option < & ' static gst:: subclass:: ElementMetadata > {
9696 static ELEMENT_METADATA : Lazy < gst:: subclass:: ElementMetadata > = Lazy :: new ( || {
9797 gst:: subclass:: ElementMetadata :: new (
@@ -156,7 +156,7 @@ impl ElementImpl for HangSrc {
156156 }
157157}
158158
159- impl HangSrc {
159+ impl MoqSrc {
160160 async fn setup ( & self ) -> anyhow:: Result < ( ) > {
161161 let ( client, url, name) = {
162162 let settings = self . settings . lock ( ) . unwrap ( ) ;
0 commit comments